This commit is contained in:
parent
d63357df90
commit
60404e393c
1 changed files with 6 additions and 0 deletions
|
|
@ -68,7 +68,13 @@ namespace Crafter {
|
||||||
if(config.contains("target")) {
|
if(config.contains("target")) {
|
||||||
target = config["target"].get<std::string>();
|
target = config["target"].get<std::string>();
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
|
||||||
target = RunCommand("clang -print-target-triple");
|
target = RunCommand("clang -print-target-triple");
|
||||||
|
#endif
|
||||||
|
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
||||||
|
GetPath();
|
||||||
|
target = RunCommand(std::format("{}\\clang-cl.exe -print-target-triple", clangClDir));
|
||||||
|
#endif
|
||||||
target.pop_back();
|
target.pop_back();
|
||||||
}
|
}
|
||||||
if(config.contains("debug")) {
|
if(config.contains("debug")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue