Update libdparse
This commit is contained in:
parent
ae05099b1d
commit
ab47fc8ffe
|
@ -1 +1 @@
|
||||||
Subproject commit 66dffcb615a1992fc69bbc7d8dccd70950a327a4
|
Subproject commit b3303ab6fd15e9cbde50c6987b303b6ed296d493
|
8
makefile
8
makefile
|
@ -1,5 +1,7 @@
|
||||||
SRC := $(shell find src -name "*.d") $(shell find libdparse/src -name "*.d")
|
SRC := $(shell find src -name "*.d") \
|
||||||
INCLUDE_PATHS := -Ilibdparse/src -Isrc
|
$(shell find libdparse/src -name "*.d") \
|
||||||
|
$(shell find libdparse/experimental_allocator/src -name "*.d")
|
||||||
|
INCLUDE_PATHS := -Ilibdparse/src -Isrc -Ilibdparse/experimental_allocator/src
|
||||||
DMD_COMMON_FLAGS := -dip25 -w $(INCLUDE_PATHS)
|
DMD_COMMON_FLAGS := -dip25 -w $(INCLUDE_PATHS)
|
||||||
DMD_DEBUG_FLAGS := -g $(DMD_COMMON_FLAGS)
|
DMD_DEBUG_FLAGS := -g $(DMD_COMMON_FLAGS)
|
||||||
DMD_FLAGS := -O -inline $(DMD_COMMON_FLAGS)
|
DMD_FLAGS := -O -inline $(DMD_COMMON_FLAGS)
|
||||||
|
@ -18,7 +20,7 @@ ldc: $(SRC)
|
||||||
gdc: $(SRC)
|
gdc: $(SRC)
|
||||||
gdc $(GDC_FLAGS) $^ -obin/dfmt
|
gdc $(GDC_FLAGS) $^ -obin/dfmt
|
||||||
|
|
||||||
test: bin/dfmt-test
|
test: bin/dfmt
|
||||||
cd tests && ./test.sh
|
cd tests && ./test.sh
|
||||||
|
|
||||||
bin/dfmt-test: $(SRC)
|
bin/dfmt-test: $(SRC)
|
||||||
|
|
|
@ -12,7 +12,7 @@ do
|
||||||
else
|
else
|
||||||
args=
|
args=
|
||||||
fi
|
fi
|
||||||
../bin/dfmt-test --brace_style=${braceStyle} ${args} "${source}" > "${braceStyle}/${source}.out"
|
../bin/dfmt --brace_style=${braceStyle} ${args} "${source}" > "${braceStyle}/${source}.out"
|
||||||
diff -u "${braceStyle}/${source}.ref" "${braceStyle}/${source}.out"
|
diff -u "${braceStyle}/${source}.ref" "${braceStyle}/${source}.out"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue