summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2013-04-09 22:33:15 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2013-04-09 22:33:15 (GMT)
commitea3cb031a0cdb496877bb22a65d2d5f6df6fdf14 (patch)
tree30ffea347fe19b68fe58bd9cdf0f1a1444b465df
parent69dc14517eefbc92326d88f45002a7ae0ca7b3b7 (diff)
downloadSCons-ea3cb031a0cdb496877bb22a65d2d5f6df6fdf14.zip
SCons-ea3cb031a0cdb496877bb22a65d2d5f6df6fdf14.tar.gz
SCons-ea3cb031a0cdb496877bb22a65d2d5f6df6fdf14.tar.bz2
TARGET_OS|ARCH should never be defaulted to HOST_OS|ARCH. This makes it impossible to detect if the user specified a default. Tools should have this information available to do the appropriate thing for the specified target, and if not present use reasonable sequece of defaults to try
-rw-r--r--src/engine/SCons/Environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index 8cc033e..55a8206 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -966,8 +966,8 @@ class Base(SubstitutionEnvironment):
self._dict['HOST_ARCH'] = self._dict.get('HOST_ARCH',None)
# Now set defaults for TARGET_{OS|ARCH}
- self._dict['TARGET_OS'] = self._dict.get('HOST_OS',None)
- self._dict['TARGET_ARCH'] = self._dict.get('HOST_ARCH',None)
+ self._dict['TARGET_OS'] = self._dict.get('TARGET_OS',None)
+ self._dict['TARGET_ARCH'] = self._dict.get('TARGET_ARCH',None)
# Apply the passed-in and customizable variables to the