mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
Merge topic 'objc-compiler-launcher'
f6ef6e5a73Merge branch 'backport-3.16-objc-compiler-launcher'1a9f6bad98ObjC: Add _COMPILE_LAUNCHER supporta05b9d4239ObjC: Add _COMPILE_LAUNCHER support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4189
This commit is contained in:
@@ -754,8 +754,8 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(
|
||||
// See if we need to use a compiler launcher like ccache or distcc
|
||||
std::string compilerLauncher;
|
||||
if (!compileCommands.empty() &&
|
||||
(lang == "C" || lang == "CXX" || lang == "Fortran" ||
|
||||
lang == "CUDA")) {
|
||||
(lang == "C" || lang == "CXX" || lang == "Fortran" || lang == "CUDA" ||
|
||||
lang == "OBJC" || lang == "OBJCXX")) {
|
||||
std::string const clauncher_prop = lang + "_COMPILER_LAUNCHER";
|
||||
const char* clauncher =
|
||||
this->GeneratorTarget->GetProperty(clauncher_prop);
|
||||
|
||||
@@ -724,7 +724,8 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang,
|
||||
// See if we need to use a compiler launcher like ccache or distcc
|
||||
std::string compilerLauncher;
|
||||
if (!compileCmds.empty() &&
|
||||
(lang == "C" || lang == "CXX" || lang == "Fortran" || lang == "CUDA")) {
|
||||
(lang == "C" || lang == "CXX" || lang == "Fortran" || lang == "CUDA" ||
|
||||
lang == "OBJC" || lang == "OBJCXX")) {
|
||||
std::string const clauncher_prop = lang + "_COMPILER_LAUNCHER";
|
||||
const char* clauncher = this->GeneratorTarget->GetProperty(clauncher_prop);
|
||||
if (clauncher && *clauncher) {
|
||||
|
||||
@@ -336,6 +336,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
||||
initProp("C_STANDARD");
|
||||
initProp("C_STANDARD_REQUIRED");
|
||||
initProp("C_EXTENSIONS");
|
||||
initProp("OBJC_COMPILER_LAUNCHER");
|
||||
initProp("OBJC_STANDARD");
|
||||
initProp("OBJC_STANDARD_REQUIRED");
|
||||
initProp("OBJC_EXTENSIONS");
|
||||
@@ -347,6 +348,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
|
||||
initProp("CXX_STANDARD");
|
||||
initProp("CXX_STANDARD_REQUIRED");
|
||||
initProp("CXX_EXTENSIONS");
|
||||
initProp("OBJCXX_COMPILER_LAUNCHER");
|
||||
initProp("OBJCXX_STANDARD");
|
||||
initProp("OBJCXX_STANDARD_REQUIRED");
|
||||
initProp("OBJCXX_EXTENSIONS");
|
||||
|
||||
Reference in New Issue
Block a user