Преглед на файлове

(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 преди 5 години
родител
ревизия
39e44914bc
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/dds/toolchain/from_dds.cpp

+ 2
- 2
src/dds/toolchain/from_dds.cpp Целия файл

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…
Отказ
Запис