| 2738 | } |
| 2739 | |
| 2740 | void 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 | |
| 2760 | void cmGeneratorTarget::AddHIPArchitectureFlags(cmBuildStep compileOrLink, |
| 2761 | std::string const& config, |
no test coverage detected