mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Conditionally set version LDC_DCompute (#2236)
This commit is contained in:
parent
76a0dd296f
commit
a95d83e05f
1 changed files with 4 additions and 1 deletions
|
@ -913,8 +913,11 @@ void registerPredefinedVersions() {
|
||||||
VersionCondition::addPredefinedGlobalIdent("LDC");
|
VersionCondition::addPredefinedGlobalIdent("LDC");
|
||||||
VersionCondition::addPredefinedGlobalIdent("all");
|
VersionCondition::addPredefinedGlobalIdent("all");
|
||||||
VersionCondition::addPredefinedGlobalIdent("D_Version2");
|
VersionCondition::addPredefinedGlobalIdent("D_Version2");
|
||||||
|
|
||||||
#if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX
|
#if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX
|
||||||
VersionCondition::addPredefinedGlobalIdent("LDC_DCompute");
|
if (dcomputeTargets.size() != 0) {
|
||||||
|
VersionCondition::addPredefinedGlobalIdent("LDC_DCompute");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (global.params.doDocComments) {
|
if (global.params.doDocComments) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue