Skip to content

Commit

Permalink
Also fix x86_mscoff to be available as a platform specifier. See #1059.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 14, 2017
1 parent 6579bbc commit 86e8527
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/dub/compilers/compiler.d
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ interface Compiler {
// Hack: see #1059
// When compiling with --arch=x86_mscoff build_platform.architecture is equal to ["x86"] and canFind below is false.
// This hack prevents unnesessary warning 'Failed to apply the selected architecture x86_mscoff. Got ["x86"]'.
if (arch_override.length && !build_platform.architecture.canFind(arch_override == "x86_mscoff" ? "x86" : arch_override)) {
// And also makes "x86_mscoff" available as a platform specifier in the package recipe
if (arch_override == "x86_mscoff")
build_platform.architecture ~= arch_override;
if (arch_override.length && !build_platform.architecture.canFind(arch_override)) {
logWarn(`Failed to apply the selected architecture %s. Got %s.`,
arch_override, build_platform.architecture);
}
Expand Down

0 comments on commit 86e8527

Please sign in to comment.