summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2022-04-26 10:13:11 -0500
committerBrian Smith <brian@dbsoft.org>2022-04-26 10:19:04 -0500
commit3daf711085889bad1bd68651bc4e8790412ae105 (patch)
treef5b0e4c1befb320cdf158e1839ac5e273373087f /build
parent7fe702603066e7f122d5dd66a3a1892ac7e06215 (diff)
downloaduxp-3daf711085889bad1bd68651bc4e8790412ae105.tar.gz
Issue #1829 - Revert “Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.”
This also removes some PP abuse and takes file entries out of PP when no longer needed without XP_MACOSX conditionals. This reverts commit 6f707bde95dab6998ac204f9ee6c925ee230c740.
Diffstat (limited to 'build')
-rw-r--r--build/moz.configure/init.configure7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
index 281f2c1ad7..b2d05e795a 100644
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -541,6 +541,13 @@ def target_is_unix(target):
set_define('XP_UNIX', target_is_unix)
@depends(target)
+def target_is_osx(target):
+ if target.kernel == 'Darwin' and target.os == 'OSX':
+ return True
+
+set_define('XP_MACOSX', target_is_osx)
+
+@depends(target)
def target_is_linux(target):
if target.kernel == 'Linux':
return True