summary refs log tree commit diff stats
path: root/compiler/semfold.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-23 20:07:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-23 20:07:30 +0200
commit2e93bac227bf266e710bf4966a0f93461033583a (patch)
treede66484cd53a0b468bb6cec12de8286a32498d8b /compiler/semfold.nim
parent7aad0d6544b14896cc83971aa0cdd6b5f96958ef (diff)
parent240953411e4a170fd0d17279bc560dda1d0a960a (diff)
downloadNim-2e93bac227bf266e710bf4966a0f93461033583a.tar.gz
Merge branch 'devel' into araq-better-codegen
Diffstat (limited to 'compiler/semfold.nim')
-rw-r--r--compiler/semfold.nim2
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)