diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-23 20:07:30 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-23 20:07:30 +0200 |
commit | 2e93bac227bf266e710bf4966a0f93461033583a (patch) | |
tree | de66484cd53a0b468bb6cec12de8286a32498d8b /compiler/semfold.nim | |
parent | 7aad0d6544b14896cc83971aa0cdd6b5f96958ef (diff) | |
parent | 240953411e4a170fd0d17279bc560dda1d0a960a (diff) | |
download | Nim-2e93bac227bf266e710bf4966a0f93461033583a.tar.gz |
Merge branch 'devel' into araq-better-codegen
Diffstat (limited to 'compiler/semfold.nim')
-rw-r--r-- | compiler/semfold.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semfold.nim b/compiler/semfold.nim index 84cb0071f..9733564e7 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -616,6 +616,8 @@ proc getConstExpr(m: PSym, n: PNode): PNode = of mCpuEndian: result = newIntNodeT(ord(CPU[targetCPU].endian), n) of mHostOS: result = newStrNodeT(toLowerAscii(platform.OS[targetOS].name), n) of mHostCPU: result = newStrNodeT(platform.CPU[targetCPU].name.toLowerAscii, n) + of mBuildOS: result = newStrNodeT(toLowerAscii(platform.OS[platform.hostOS].name), n) + of mBuildCPU: result = newStrNodeT(platform.CPU[platform.hostCPU].name.toLowerAscii, n) of mAppType: result = getAppType(n) of mNaN: result = newFloatNodeT(NaN, n) of mInf: result = newFloatNodeT(Inf, n) |