Quellcode durchsuchen

(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 vor 4 Jahren
Ursprung
Commit
39e44914bc
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      src/dds/toolchain/from_dds.cpp

+ 2
- 2
src/dds/toolchain/from_dds.cpp Datei anzeigen

@@ -504,7 +504,7 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
if (!compiler_id) {
fail(context, "Cannot deduce library file extension without Compiler-ID");
}
if (is_gnu) {
if (is_gnu_like) {
return ".a";
} else if (is_msvc) {
return ".lib";
@@ -518,7 +518,7 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
if (!compiler_id) {
fail(context, "Cannot deduce object file extension without Compiler-ID");
}
if (is_gnu) {
if (is_gnu_like) {
return ".o";
} else if (is_msvc) {
return ".obj";

Laden…
Abbrechen
Speichern