Browse Source

(Attempted) fix for Clang not working with MacOS

This is intended to fix #11.

Unfortunately I haven't been able to successfully build DDS yet to actually try it out, but looking at the surrounding code it seems like the right solution...
default_compile_flags
Tristan Brindle 4 years ago
parent
commit
39e44914bc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/dds/toolchain/from_dds.cpp

+ 2
- 2
src/dds/toolchain/from_dds.cpp View File

if (!compiler_id) { if (!compiler_id) {
fail(context, "Cannot deduce library file extension without Compiler-ID"); fail(context, "Cannot deduce library file extension without Compiler-ID");
} }
if (is_gnu) {
if (is_gnu_like) {
return ".a"; return ".a";
} else if (is_msvc) { } else if (is_msvc) {
return ".lib"; return ".lib";
if (!compiler_id) { if (!compiler_id) {
fail(context, "Cannot deduce object file extension without Compiler-ID"); fail(context, "Cannot deduce object file extension without Compiler-ID");
} }
if (is_gnu) {
if (is_gnu_like) {
return ".o"; return ".o";
} else if (is_msvc) { } else if (is_msvc) {
return ".obj"; return ".obj";

Loading…
Cancel
Save