File tree Expand file tree Collapse file tree 6 files changed +208
-180
lines changed
Expand file tree Collapse file tree 6 files changed +208
-180
lines changed Original file line number Diff line number Diff line change 77[submodule "d-test-utils "]
88 path = d-test-utils
99 url = https://github.com/dlang-community/d-test-utils.git
10+ [submodule "dmd "]
11+ path = dmd
12+ url = https://github.com/dlang/dmd.git
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ when using the **--inplace** option.
1616
1717### Building from source using Make
1818* Clone the repository
19- * Run ``` git submodule update --init --recursive `` ` in the dfmt directory
20- * To compile with DMD, run ``` make `` ` in the dfmt directory. To compile with
21- LDC, run ``` make ldc ``` instead. The generated binary will be placed in ``` dfmt/bin/ `` ` .
19+ * Run ` git submodule update --init --recursive ` in the dfmt directory
20+ * To compile with DMD, run ` make ` in the dfmt directory. To compile with
21+ LDC, run ` make ldc ` instead. The generated binary will be placed in ` dfmt/bin/ ` .
2222
2323### Building from source using dub
2424* Clone the repository
@@ -68,8 +68,8 @@ dfmt --inplace --space_after_cast=false --max_line_length=80 \
6868```
6969
7070## Disabling formatting
71- Formatting can be temporarily disabled by placing the comments ``` // dfmt off `` `
72- and ``` // dfmt on `` ` around code that you do not want formatted.
71+ Formatting can be temporarily disabled by placing the comments ` // dfmt off `
72+ and ` // dfmt on ` around code that you do not want formatted.
7373
7474``` d
7575void main(string[] args)
Original file line number Diff line number Diff line change 44 "targetType" : " autodetect" ,
55 "license" : " BSL-1.0" ,
66 "dependencies" : {
7- "libdparse" : " >=0.19.2 <1.0.0"
7+ "libdparse" : " >=0.19.2 <1.0.0" ,
8+ "dmd" : {
9+ "repository" : " git+https://github.com/dlang/dmd.git"
10+ }
811 },
912 "targetPath" : " bin/" ,
1013 "targetName" : " dfmt" ,
Original file line number Diff line number Diff line change 11SRC := $(shell find src -name "* .d") \
22 $(shell find libdparse/src -name "* .d") \
33 $(shell find stdx-allocator/source -name "* .d")
4- INCLUDE_PATHS := -Ilibdparse/src -Istdx-allocator/source -Isrc -Jbin
5- DMD_COMMON_FLAGS := -dip25 - w $(INCLUDE_PATHS )
4+ INCLUDE_PATHS := -Ilibdparse/src -Istdx-allocator/source -Isrc -Idmd/compiler/src - Jbin
5+ DMD_COMMON_FLAGS := -w $(INCLUDE_PATHS )
66DMD_DEBUG_FLAGS := -debug -g $(DMD_COMMON_FLAGS )
77DMD_FLAGS := -O -inline $(DMD_COMMON_FLAGS )
88DMD_TEST_FLAGS := -unittest -g $(DMD_COMMON_FLAGS )
You can’t perform that action at this time.
0 commit comments