scons: Trim down a check for mac OS and arch setting flags.
authorGabe Black <gabe.black@gmail.com>
Sun, 7 Feb 2021 08:20:25 +0000 (00:20 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 10 Feb 2021 11:35:28 +0000 (11:35 +0000)
This check used uname to determine if scons was running on macos, and
then a fairly elaborate check to see if the version was above 9, and if
the hardware supported 64 bit. I think at this point it's safe to assume
both that we're at least at macos 10 which is 19 years old, and that Mac
hardware supports 64 bit.

Change-Id: Ice66df2530bbcc929d3a37e7679634b75ba7b860
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40857
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
SConstruct

index 3e892cdbf63ac67b1ff0d3b72a995401b3e2c451..3f55730d5fa7102040cbbed1aadc09228691cb2a 100755 (executable)
@@ -574,19 +574,6 @@ conf = Configure(main,
         'CheckLinkFlag' : CheckLinkFlag,
         })
 
-# Check if we should compile a 64 bit binary on Mac OS X/Darwin
-try:
-    import platform
-    uname = platform.uname()
-    if uname[0] == 'Darwin' and compareVersions(uname[2], '9.0.0') >= 0:
-        if int(readCommand('sysctl -n hw.cpu64bit_capable')[0]):
-            main.Append(CCFLAGS=['-arch', 'x86_64'])
-            main.Append(CFLAGS=['-arch', 'x86_64'])
-            main.Append(LINKFLAGS=['-arch', 'x86_64'])
-            main.Append(ASFLAGS=['-arch', 'x86_64'])
-except:
-    pass
-
 # Recent versions of scons substitute a "Null" object for Configure()
 # when configuration isn't necessary, e.g., if the "--help" option is
 # present.  Unfortuantely this Null object always returns false,