Skip to content

Commit 1d8e8f3

Browse files
lucica28RazvanN7edi33416
authored andcommitted
Update dmd (dlang-community#23)
* Update README * Add dmd-as-a-library submodule (dlang-community#2) * Add GH Actions build script (dlang-community#4) * Removed libdparse from imports print functionality (dlang-community#3) * Fix failing tester + add unittest for imports (dlang-community#7) * Add style checker (dlang-community#9) * Update action to build dlang fork * Fix linter errors * Add dmd dependencies to dub.json * Add dmd dependencies to build.bat * Replace libdparse in enum array functionality * replace libdparse in objectconst functionality + unittests integration with dmd (dlang-community#17) * replace libdparse in objectconst functionality + unittests integration with dmd * updated dmd * run tests * use templates * visit aggregate declaration * updated dmd * solve linter seg fault * get rid of dup + refactor * fix typo * update dmd to latest version Co-authored-by: RazvanN7 <[email protected]> Co-authored-by: Eduard Staniloiu <[email protected]>
1 parent 0c470ea commit 1d8e8f3

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

build.bat

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ set CONTAINERS=
3030
set LIBDDOC=
3131

3232
set DMD_ROOT_SRC=
33-
for %%x in (dmd\src\dmd\common\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
34-
for %%x in (dmd\src\dmd\root\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
33+
for %%x in (dmd\compiler\src\dmd\common\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
34+
for %%x in (dmd\compiler\src\dmd\root\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
3535

3636
set DMD_LEXER_SRC=^
37-
dmd\src\dmd\console.d ^
38-
dmd\src\dmd\entity.d ^
39-
dmd\src\dmd\errors.d ^
40-
dmd\src\dmd\file_manager.d ^
41-
dmd\src\dmd\globals.d ^
42-
dmd\src\dmd\id.d ^
43-
dmd\src\dmd\identifier.d ^
44-
dmd\src\dmd\lexer.d ^
45-
dmd\src\dmd\tokens.d ^
46-
dmd\src\dmd\utils.d
37+
dmd\compiler\src\dmd\console.d ^
38+
dmd\compiler\src\dmd\entity.d ^
39+
dmd\compiler\src\dmd\errors.d ^
40+
dmd\compiler\src\dmd\file_manager.d ^
41+
dmd\compiler\src\dmd\globals.d ^
42+
dmd\compiler\src\dmd\id.d ^
43+
dmd\compiler\src\dmd\identifier.d ^
44+
dmd\compiler\src\dmd\lexer.d ^
45+
dmd\compiler\src\dmd\tokens.d ^
46+
dmd\compiler\src\dmd\utils.d
4747

4848
set DMD_PARSER_SRC=^
49-
dmd\src\dmd\astbase.d ^
50-
dmd\src\dmd\parse.d ^
51-
dmd\src\dmd\parsetimevisitor.d ^
52-
dmd\src\dmd\transitivevisitor.d ^
53-
dmd\src\dmd\permissivevisitor.d ^
54-
dmd\src\dmd\strictvisitor.d ^
55-
dmd\src\dmd\astenums.d
49+
dmd\compiler\src\dmd\astbase.d ^
50+
dmd\compiler\src\dmd\parse.d ^
51+
dmd\compiler\src\dmd\parsetimevisitor.d ^
52+
dmd\compiler\src\dmd\transitivevisitor.d ^
53+
dmd\compiler\src\dmd\permissivevisitor.d ^
54+
dmd\compiler\src\dmd\strictvisitor.d ^
55+
dmd\compiler\src\dmd\astenums.d
5656

5757
for %%x in (src\dscanner\*.d) do set CORE=!CORE! %%x
5858
for %%x in (src\dscanner\analysis\*.d) do set ANALYSIS=!ANALYSIS! %%x
@@ -88,7 +88,7 @@ if "%1" == "test" goto test_cmd
8888
-I"containers\src"^
8989
-I"libddoc\src"^
9090
-I"libddoc\common\source"^
91-
-I"dmd\src"^
91+
-I"dmd\compiler\src"^
9292
-ofbin\dscanner.exe
9393
goto eof
9494

@@ -109,7 +109,7 @@ set TESTNAME="bin\dscanner-unittest"
109109
-I"DCD\dsymbol\src"^
110110
-I"containers\src"^
111111
-I"libddoc\src"^
112-
-I"dmd\src"^
112+
-I"dmd\compiler\src"^
113113
-lib %TESTFLAGS%^
114114
-of%TESTNAME%.lib
115115
if exist %TESTNAME%.lib %DC% %MFLAGS%^
@@ -123,7 +123,7 @@ if exist %TESTNAME%.lib %DC% %MFLAGS%^
123123
-I"containers\src"^
124124
-I"libddoc\src"^
125125
-I"libddoc\common\source"^
126-
-I"dmd\src"^
126+
-I"dmd\compiler\src"^
127127
-unittest^
128128
%TESTFLAGS%^
129129
-of%TESTNAME%.exe

dmd

Submodule dmd updated 5462 files

makefile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ DMD := $(DC)
66
GDC := gdc
77
LDC := ldc2
88
DMD_ROOT_SRC := \
9-
$(shell find dmd/src/dmd/common -name "*.d")\
10-
$(shell find dmd/src/dmd/root -name "*.d")
9+
$(shell find dmd/compiler/src/dmd/common -name "*.d")\
10+
$(shell find dmd/compiler/src/dmd/root -name "*.d")
1111
DMD_LEXER_SRC := \
12-
dmd/src/dmd/console.d \
13-
dmd/src/dmd/entity.d \
14-
dmd/src/dmd/errors.d \
15-
dmd/src/dmd/file_manager.d \
16-
dmd/src/dmd/globals.d \
17-
dmd/src/dmd/id.d \
18-
dmd/src/dmd/identifier.d \
19-
dmd/src/dmd/lexer.d \
20-
dmd/src/dmd/tokens.d \
21-
dmd/src/dmd/utils.d \
12+
dmd/compiler/src/dmd/console.d \
13+
dmd/compiler/src/dmd/entity.d \
14+
dmd/compiler/src/dmd/errors.d \
15+
dmd/compiler/src/dmd/file_manager.d \
16+
dmd/compiler/src/dmd/globals.d \
17+
dmd/compiler/src/dmd/id.d \
18+
dmd/compiler/src/dmd/identifier.d \
19+
dmd/compiler/src/dmd/lexer.d \
20+
dmd/compiler/src/dmd/tokens.d \
21+
dmd/compiler/src/dmd/utils.d \
2222
$(DMD_ROOT_SRC)
2323

2424
DMD_PARSER_SRC := \
25-
dmd/src/dmd/astbase.d \
26-
dmd/src/dmd/parse.d \
27-
dmd/src/dmd/parsetimevisitor.d \
28-
dmd/src/dmd/transitivevisitor.d \
29-
dmd/src/dmd/permissivevisitor.d \
30-
dmd/src/dmd/strictvisitor.d \
31-
dmd/src/dmd/astenums.d \
25+
dmd/compiler/src/dmd/astbase.d \
26+
dmd/compiler/src/dmd/parse.d \
27+
dmd/compiler/src/dmd/parsetimevisitor.d \
28+
dmd/compiler/src/dmd/transitivevisitor.d \
29+
dmd/compiler/src/dmd/permissivevisitor.d \
30+
dmd/compiler/src/dmd/strictvisitor.d \
31+
dmd/compiler/src/dmd/astenums.d \
3232
$(DMD_LEXER_SRC)
3333

3434
LIB_SRC := \
@@ -69,7 +69,7 @@ INCLUDE_PATHS = \
6969
-Icontainers/src \
7070
-Ilibddoc/src \
7171
-Ilibddoc/common/source \
72-
-Idmd/src
72+
-Idmd/compiler/src
7373

7474
DMD_VERSIONS = -version=StdLoggerDisableWarning -version=CallbackAPI -version=DMDLIB -version=MARS
7575
DMD_DEBUG_VERSIONS = -version=dparse_verbose

0 commit comments

Comments
 (0)