Skip to content

Commit

Permalink
Update dmd (#23)
Browse files Browse the repository at this point in the history
* Update README

* Add dmd-as-a-library submodule (#2)

* Add GH Actions build script (#4)

* Removed libdparse from imports print functionality (#3)

* Fix failing tester + add unittest for imports (#7)

* Add style checker (#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 (#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 <razvan.nitu1305@gmail.com>
Co-authored-by: Eduard Staniloiu <edi33416@gmail.com>
  • Loading branch information
3 people committed Jan 24, 2024
1 parent 664b9e2 commit 3bb0547
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
44 changes: 22 additions & 22 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@ set CONTAINERS=
set LIBDDOC=

set DMD_ROOT_SRC=
for %%x in (dmd\src\dmd\common\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
for %%x in (dmd\src\dmd\root\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
for %%x in (dmd\compiler\src\dmd\common\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x
for %%x in (dmd\compiler\src\dmd\root\*.d) do set DMD_ROOT_SRC=!DMD_ROOT_SRC! %%x

set DMD_LEXER_SRC=^
dmd\src\dmd\console.d ^
dmd\src\dmd\entity.d ^
dmd\src\dmd\errors.d ^
dmd\src\dmd\file_manager.d ^
dmd\src\dmd\globals.d ^
dmd\src\dmd\id.d ^
dmd\src\dmd\identifier.d ^
dmd\src\dmd\lexer.d ^
dmd\src\dmd\tokens.d ^
dmd\src\dmd\utils.d
dmd\compiler\src\dmd\console.d ^
dmd\compiler\src\dmd\entity.d ^
dmd\compiler\src\dmd\errors.d ^
dmd\compiler\src\dmd\file_manager.d ^
dmd\compiler\src\dmd\globals.d ^
dmd\compiler\src\dmd\id.d ^
dmd\compiler\src\dmd\identifier.d ^
dmd\compiler\src\dmd\lexer.d ^
dmd\compiler\src\dmd\tokens.d ^
dmd\compiler\src\dmd\utils.d

set DMD_PARSER_SRC=^
dmd\src\dmd\astbase.d ^
dmd\src\dmd\parse.d ^
dmd\src\dmd\parsetimevisitor.d ^
dmd\src\dmd\transitivevisitor.d ^
dmd\src\dmd\permissivevisitor.d ^
dmd\src\dmd\strictvisitor.d ^
dmd\src\dmd\astenums.d
dmd\compiler\src\dmd\astbase.d ^
dmd\compiler\src\dmd\parse.d ^
dmd\compiler\src\dmd\parsetimevisitor.d ^
dmd\compiler\src\dmd\transitivevisitor.d ^
dmd\compiler\src\dmd\permissivevisitor.d ^
dmd\compiler\src\dmd\strictvisitor.d ^
dmd\compiler\src\dmd\astenums.d

for %%x in (src\dscanner\*.d) do set CORE=!CORE! %%x
for %%x in (src\dscanner\analysis\*.d) do set ANALYSIS=!ANALYSIS! %%x
Expand Down Expand Up @@ -88,7 +88,7 @@ if "%1" == "test" goto test_cmd
-I"containers\src"^
-I"libddoc\src"^
-I"libddoc\common\source"^
-I"dmd\src"^
-I"dmd\compiler\src"^
-ofbin\dscanner.exe
goto eof

Expand All @@ -109,7 +109,7 @@ set TESTNAME="bin\dscanner-unittest"
-I"DCD\dsymbol\src"^
-I"containers\src"^
-I"libddoc\src"^
-I"dmd\src"^
-I"dmd\compiler\src"^
-lib %TESTFLAGS%^
-of%TESTNAME%.lib
if exist %TESTNAME%.lib %DC% %MFLAGS%^
Expand All @@ -123,7 +123,7 @@ if exist %TESTNAME%.lib %DC% %MFLAGS%^
-I"containers\src"^
-I"libddoc\src"^
-I"libddoc\common\source"^
-I"dmd\src"^
-I"dmd\compiler\src"^
-unittest^
%TESTFLAGS%^
-of%TESTNAME%.exe
Expand Down
2 changes: 1 addition & 1 deletion dmd
Submodule dmd updated 5462 files
40 changes: 20 additions & 20 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ DMD := $(DC)
GDC := gdc
LDC := ldc2
DMD_ROOT_SRC := \
$(shell find dmd/src/dmd/common -name "*.d")\
$(shell find dmd/src/dmd/root -name "*.d")
$(shell find dmd/compiler/src/dmd/common -name "*.d")\
$(shell find dmd/compiler/src/dmd/root -name "*.d")
DMD_LEXER_SRC := \
dmd/src/dmd/console.d \
dmd/src/dmd/entity.d \
dmd/src/dmd/errors.d \
dmd/src/dmd/file_manager.d \
dmd/src/dmd/globals.d \
dmd/src/dmd/id.d \
dmd/src/dmd/identifier.d \
dmd/src/dmd/lexer.d \
dmd/src/dmd/tokens.d \
dmd/src/dmd/utils.d \
dmd/compiler/src/dmd/console.d \
dmd/compiler/src/dmd/entity.d \
dmd/compiler/src/dmd/errors.d \
dmd/compiler/src/dmd/file_manager.d \
dmd/compiler/src/dmd/globals.d \
dmd/compiler/src/dmd/id.d \
dmd/compiler/src/dmd/identifier.d \
dmd/compiler/src/dmd/lexer.d \
dmd/compiler/src/dmd/tokens.d \
dmd/compiler/src/dmd/utils.d \
$(DMD_ROOT_SRC)

DMD_PARSER_SRC := \
dmd/src/dmd/astbase.d \
dmd/src/dmd/parse.d \
dmd/src/dmd/parsetimevisitor.d \
dmd/src/dmd/transitivevisitor.d \
dmd/src/dmd/permissivevisitor.d \
dmd/src/dmd/strictvisitor.d \
dmd/src/dmd/astenums.d \
dmd/compiler/src/dmd/astbase.d \
dmd/compiler/src/dmd/parse.d \
dmd/compiler/src/dmd/parsetimevisitor.d \
dmd/compiler/src/dmd/transitivevisitor.d \
dmd/compiler/src/dmd/permissivevisitor.d \
dmd/compiler/src/dmd/strictvisitor.d \
dmd/compiler/src/dmd/astenums.d \
$(DMD_LEXER_SRC)

LIB_SRC := \
Expand Down Expand Up @@ -69,7 +69,7 @@ INCLUDE_PATHS = \
-Icontainers/src \
-Ilibddoc/src \
-Ilibddoc/common/source \
-Idmd/src
-Idmd/compiler/src

DMD_VERSIONS = -version=StdLoggerDisableWarning -version=CallbackAPI -version=DMDLIB -version=MARS
DMD_DEBUG_VERSIONS = -version=dparse_verbose
Expand Down

0 comments on commit 3bb0547

Please sign in to comment.