summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-11-03 00:21:00 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-11-03 00:21:00 +0100
commitf481183140f5c3ad2c812ae5615b444aa684b2fc (patch)
treea279289b52bfdfba86995094e804153e938d7092 /wscript
parentf97d339ce763d269b76aa8bb5add8c6006531c79 (diff)
downloadnodejs-f481183140f5c3ad2c812ae5615b444aa684b2fc.tar.gz
nodejs-f481183140f5c3ad2c812ae5615b444aa684b2fc.tar.bz2
nodejs-f481183140f5c3ad2c812ae5615b444aa684b2fc.zip
Add process.platform
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index 5bd6c232b..dc7f61f03 100644
--- a/wscript
+++ b/wscript
@@ -138,6 +138,11 @@ def configure(conf):
conf.env.append_value('CCFLAGS', '-D_FILE_OFFSET_BITS=64')
conf.env.append_value('CXXFLAGS', '-D_FILE_OFFSET_BITS=64')
+ # platform
+ platform_def = '-DPLATFORM=' + sys.platform
+ conf.env.append_value('CCFLAGS', platform_def)
+ conf.env.append_value('CXXFLAGS', platform_def)
+
# Split off debug variant before adding variant specific defines
debug_env = conf.env.copy()
conf.set_env_name('debug', debug_env)