From 78d1a74b8c8d33827ce6d6756c3a3ca603f05c24 Mon Sep 17 00:00:00 2001 From: tsbockman Date: Tue, 19 Jan 2016 21:05:43 -0800 Subject: [PATCH] Fix Issue #686 This fixes [Issue #686](https://github.com/D-Programming-Language/dub/issues/686), "multiple -march with LDC". Note that I have not run this through the full DUB test suite, as it wasn't obvious to me how to use it. --- source/dub/compilers/buildsettings.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dub/compilers/buildsettings.d b/source/dub/compilers/buildsettings.d index 10ec798f2..b4c83e526 100644 --- a/source/dub/compilers/buildsettings.d +++ b/source/dub/compilers/buildsettings.d @@ -80,9 +80,9 @@ struct BuildSettings { addPostBuildCommands(bs.postBuildCommands); } - void addDFlags(in string[] value...) { dflags ~= value; } + void addDFlags(in string[] value...) { add(dflags, value, true); } void removeDFlags(in string[] value...) { remove(dflags, value); } - void addLFlags(in string[] value...) { lflags ~= value; } + void addLFlags(in string[] value...) { add(lflags, value, true); } void addLibs(in string[] value...) { add(libs, value); } void addLinkerFiles(in string[] value...) { add(linkerFiles, value); } void addSourceFiles(in string[] value...) { add(sourceFiles, value); }