This commit is contained in:
parent
4aa53b14f6
commit
8b613a9f0f
3 changed files with 5 additions and 3 deletions
|
|
@ -75,7 +75,8 @@ namespace Crafter {
|
|||
#endif
|
||||
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
||||
AutoDetect();
|
||||
target = RunCommand(std::format("{} && clang-cl.exe -print-target-triple", vsVars));
|
||||
target = "x86_64-pc-windows-msvc";
|
||||
//target = RunCommand(std::format("{} && clang-cl.exe -print-target-triple", vsVars));
|
||||
#endif
|
||||
target.pop_back();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -473,11 +473,11 @@ namespace Crafter {
|
|||
#endif
|
||||
} else if(config.type == CRAFTER_CONFIGURATION_TYPE_LIBRARY) {
|
||||
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
|
||||
RunCommandIgnore(std::format("ar r {}.a {}", (binDir/fs::path(std::string("lib")+outputName)).string(), files));
|
||||
RunClang(std::format("ar r {}.a {}", (binDir/fs::path(std::string("lib")+outputName)).string(), files));
|
||||
#endif
|
||||
|
||||
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
||||
RunCommandIgnore(std::format("{} && lib.exe {} /OUT:{}.lib", vsVars, files, (binDir/fs::path(outputName)).string()));
|
||||
RunClang(std::format("{} && lib.exe {} /OUT:{}.lib", vsVars, files, (binDir/fs::path(outputName)).string()));
|
||||
#endif
|
||||
} else {
|
||||
#ifdef CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_linux_gnu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue