Fix LDC build
This commit is contained in:
parent
0151569b81
commit
c83c76299e
|
@ -20,3 +20,6 @@ dscanner.o
|
||||||
|
|
||||||
# Static analysis reports
|
# Static analysis reports
|
||||||
dscanner-report.json
|
dscanner-report.json
|
||||||
|
|
||||||
|
# Object files
|
||||||
|
*.o
|
||||||
|
|
8
makefile
8
makefile
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
DMD = dmd
|
DMD = dmd
|
||||||
GDC = gdc
|
GDC = gdc
|
||||||
LDC = ldc
|
LDC = ldc2
|
||||||
SRC = src/main.d\
|
SRC = src/main.d\
|
||||||
src/stats.d\
|
src/stats.d\
|
||||||
src/imports.d\
|
src/imports.d\
|
||||||
|
@ -20,6 +20,8 @@ VERSIONS =
|
||||||
DEBUG_VERSIONS = -version=std_parser_verbose
|
DEBUG_VERSIONS = -version=std_parser_verbose
|
||||||
|
|
||||||
all: dmdbuild
|
all: dmdbuild
|
||||||
|
ldc: ldcbuild
|
||||||
|
gdc: gdcbuild
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
${DMD} -g -ofdsc ${VERSIONS} ${DEBUG_VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
${DMD} -g -ofdsc ${VERSIONS} ${DEBUG_VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
||||||
|
@ -30,16 +32,18 @@ dmdbuild:
|
||||||
rm -f bin/dscanner.o
|
rm -f bin/dscanner.o
|
||||||
|
|
||||||
gdcbuild:
|
gdcbuild:
|
||||||
|
mkdir -p bin
|
||||||
${GDC} -O3 -frelease -obin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
${GDC} -O3 -frelease -obin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
||||||
|
|
||||||
ldcbuild:
|
ldcbuild:
|
||||||
|
mkdir -p bin
|
||||||
${LDC} -O5 -release -oq -of=bin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
${LDC} -O5 -release -oq -of=bin/dscanner ${VERSIONS} ${INCLUDE_PATHS} ${SRC}
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@./test.sh
|
@./test.sh
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf dsc dsc.o
|
rm -rf dsc *.o
|
||||||
rm -rf bin
|
rm -rf bin
|
||||||
rm -f dscanner-report.json
|
rm -f dscanner-report.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue