瀏覽代碼

Merge pull request #13 from tcbrindle/develop

Fix for Clang not working with MacOS
default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
7783e813ef
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 10 行新增3 行删除
  1. +10
    -3
      src/dds/toolchain/from_dds.cpp

+ 10
- 3
src/dds/toolchain/from_dds.cpp 查看文件

@@ -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";
@@ -570,7 +570,7 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
string_seq ret;
if (is_msvc) {
ret = {get_compiler(language::cxx), "/nologo", "/EHsc", "<IN>", "/Fe<OUT>"};
} else if (is_gnu_like) {
} else if (is_gnu) {
ret = {get_compiler(language::cxx),
"-fPIC",
"-fdiagnostics-color",
@@ -578,6 +578,13 @@ toolchain dds::parse_toolchain_dds(const lm::pair_list& pairs, strv context) {
"-pthread",
"-lstdc++fs",
"-o<OUT>"};
} else if (is_clang) {
ret = {get_compiler(language::cxx),
"-fPIC",
"-fdiagnostics-color",
"<IN>",
"-pthread",
"-o<OUT>"};
} else {
assert(false && "No link-exe command");
std::terminate();

Loading…
取消
儲存