diff --git a/build.cmd b/build.cmd index c70df78..01b3e8f 100644 --- a/build.cmd +++ b/build.cmd @@ -1 +1 @@ -rdmd --build-only -ofdub.exe -g -debug -Isource curl.lib %* source\app.d \ No newline at end of file +rdmd --force --build-only -ofdub.exe -g -debug -w -property -Isource curl.lib %* source\app.d \ No newline at end of file diff --git a/build.sh b/build.sh index 270caee..639b949 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ #!/bin/sh LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"` LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'` -rdmd --build-only -ofdub -g -debug -Isource $LIBS $* source/app.d \ No newline at end of file +rdmd --build-only -ofdub -g -debug -w -property -Isource $LIBS $* source/app.d \ No newline at end of file diff --git a/source/dub/compilers/ldc.d b/source/dub/compilers/ldc.d index ddafe64..9aff585 100644 --- a/source/dub/compilers/ldc.d +++ b/source/dub/compilers/ldc.d @@ -97,10 +97,8 @@ case TargetType.library: case TargetType.staticLibrary: assert(false, "No LDC static libraries supported"); - break; case TargetType.dynamicLibrary: assert(false, "No LDC dynamic libraries supported"); - break; } auto tpath = Path(settings.targetPath) ~ getTargetFileName(settings, platform); diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d index 852bb51..6459b69 100644 --- a/source/dub/generators/build.d +++ b/source/dub/generators/build.d @@ -59,7 +59,7 @@ // make paths relative to shrink the command line foreach(ref f; buildsettings.sourceFiles){ auto fp = Path(f); - if( fp.absolute ) fp = fp.relativeTo(Path(getcwd)); + if( fp.absolute ) fp = fp.relativeTo(Path(getcwd())); f = fp.toNativeString(); }