MCPcopy Create free account
hub / github.com/Kitware/CMake / AddISPCTargetFlags

Method AddISPCTargetFlags

Source/cmGeneratorTarget.cxx:2740–2758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2738}
2739
2740void cmGeneratorTarget::AddISPCTargetFlags(std::string& flags) const
2741{
2742 std::string const& arch = this->GetSafeProperty("ISPC_INSTRUCTION_SETS");
2743
2744 // If ISPC_TARGET is false we don't add any architectures.
2745 if (cmIsOff(arch)) {
2746 return;
2747 }
2748
2749 std::string const& compiler =
2750 this->Makefile->GetSafeDefinition("CMAKE_ISPC_COMPILER_ID");
2751
2752 if (compiler == "Intel") {
2753 cmList targets(arch);
2754 if (!targets.empty()) {
2755 flags += cmStrCat(" --target=", cmWrap("", targets, "", ","));
2756 }
2757 }
2758}
2759
2760void cmGeneratorTarget::AddHIPArchitectureFlags(cmBuildStep compileOrLink,
2761 std::string const& config,

Callers 1

AddLanguageFlagsMethod · 0.80

Calls 4

cmIsOffFunction · 0.85
cmWrapFunction · 0.85
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected