mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Don't pre-define versions D_SIMD and D_AVX
LDC doesn't support DMD's core.simd interface.
This commit is contained in:
parent
3940f6f1c3
commit
1d4c6fa72c
1 changed files with 4 additions and 4 deletions
|
@ -775,14 +775,14 @@ void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("D_PIC");
|
||||
}
|
||||
|
||||
/* LDC doesn't support DMD's core.simd interface.
|
||||
if (arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64) {
|
||||
if (traitsTargetHasFeature("sse2")) {
|
||||
if (traitsTargetHasFeature("sse2"))
|
||||
VersionCondition::addPredefinedGlobalIdent("D_SIMD");
|
||||
}
|
||||
if (traitsTargetHasFeature("avx")) {
|
||||
if (traitsTargetHasFeature("avx"))
|
||||
VersionCondition::addPredefinedGlobalIdent("D_AVX");
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// parse the OS out of the target triple
|
||||
// see http://gcc.gnu.org/install/specific.html for details
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue