This commit is contained in:
parent
c4686ae1cc
commit
e61a9d8363
1 changed files with 7 additions and 11 deletions
|
|
@ -251,26 +251,22 @@ namespace Crafter {
|
||||||
command += std::format(" --sysroot={} -fno-exceptions -fno-c++-static-destructors", (exeDir/"wasi-sysroot-28.0").string());
|
command += std::format(" --sysroot={} -fno-exceptions -fno-c++-static-destructors", (exeDir/"wasi-sysroot-28.0").string());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
|
for(const Define& define : config.defines) {
|
||||||
if(define.value.empty()) {
|
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
|
||||||
|
if(define.value.empty()) {
|
||||||
command += std::format(" -D {}", define.name);
|
command += std::format(" -D {}", define.name);
|
||||||
} else {
|
} else {
|
||||||
command += std::format(" -D {}={}", define.name, define.value);
|
command += std::format(" -D {}={}", define.name, define.value);
|
||||||
}
|
}
|
||||||
}
|
#endif
|
||||||
#endif
|
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
||||||
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
if(define.value.empty()) {
|
||||||
if(define.value.empty()) {
|
|
||||||
command += std::format(" /D {}", define.name);
|
command += std::format(" /D {}", define.name);
|
||||||
} else {
|
} else {
|
||||||
command += std::format(" /D {}={}", define.name, define.value);
|
command += std::format(" /D {}={}", define.name, define.value);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
for(const Define& define : config.defines) {
|
|
||||||
|
|
||||||
|
|
||||||
fs::path pcmDir;
|
fs::path pcmDir;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue