mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 03:16:05 +03:00
Replace predefined versions WebAssembly{32,64} by general WebAssembly (#2779)
As that (+ D_LP64 for wasm64) is what DMD does, according to Petar (https://github.com/ldc-developers/ldc/issues/2144#issuecomment-335181401). See https://dlang.org/spec/version.html
This commit is contained in:
parent
800ac4cf13
commit
9a15cb6d35
1 changed files with 1 additions and 3 deletions
|
@ -742,10 +742,8 @@ void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("D_HardFloat");
|
||||
break;
|
||||
case llvm::Triple::wasm32:
|
||||
VersionCondition::addPredefinedGlobalIdent("WebAssembly32");
|
||||
break;
|
||||
case llvm::Triple::wasm64:
|
||||
VersionCondition::addPredefinedGlobalIdent("WebAssembly64");
|
||||
VersionCondition::addPredefinedGlobalIdent("WebAssembly");
|
||||
break;
|
||||
default:
|
||||
warning(Loc(), "unknown target CPU architecture: %s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue