Andrea Mondelli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16649
Change subject: scons: conditional use of new RPATH inclusion
......................................................................
scons: conditional use of new RPATH inclusion
On OSX, clang doesn’t support the -z option.
This patch resolve the compiler error produced on MacOS platform.
Change-Id: Idfe69c30fe40add97d16d0f2e25e598b30d26a9d
---
M SConstruct
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/SConstruct b/SConstruct
index 026327c..1595558 100755
--- a/SConstruct
+++ b/SConstruct
@@ -1090,8 +1090,9 @@
]
env.Append(RPATH=[env.Literal(os.path.join(*components))])
-main.Append(LINKFLAGS=Split('-z origin'))
-main.AddMethod(add_local_rpath, 'AddLocalRPATH')
+if sys.platform != "darwin":
+ main.Append(LINKFLAGS=Split('-z origin'))
+ main.AddMethod(add_local_rpath, 'AddLocalRPATH')
# builds in ext are shared across all configs in the build root.
ext_dir = abspath(joinpath(str(main.root), 'ext'))
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16649
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Idfe69c30fe40add97d16d0f2e25e598b30d26a9d
Gerrit-Change-Number: 16649
Gerrit-PatchSet: 1
Gerrit-Owner: Andrea Mondelli <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev