aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/sycl/crosstool/computecpp.tpl
diff options
context:
space:
mode:
authorGravatar Luke Iwanski <luke@codeplay.com>2016-12-15 17:45:11 +0100
committerGravatar Benoit Steiner <benoitsteiner@users.noreply.github.com>2016-12-15 08:45:11 -0800
commita3258398caae5f24a43e3eb73c4051ad8eb417ac (patch)
treece70940408b4171fc3147ec7a789118b7d8b5c7f /third_party/sycl/crosstool/computecpp.tpl
parent97c410c884865703e463742bb9b4a53c8588e4fd (diff)
Added '-Wl,-no-as-needed' for linking *.so's, when CROSSTOOL is used.
Diffstat (limited to 'third_party/sycl/crosstool/computecpp.tpl')
-rwxr-xr-xthird_party/sycl/crosstool/computecpp.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/sycl/crosstool/computecpp.tpl b/third_party/sycl/crosstool/computecpp.tpl
index e90d51bf87..3c77d903a9 100755
--- a/third_party/sycl/crosstool/computecpp.tpl
+++ b/third_party/sycl/crosstool/computecpp.tpl
@@ -26,6 +26,8 @@ def main():
if(output_file_index == 1):
# we are linking
+ # Inserting this flag is required as natively bazel adds "-Wl,-no-as-needed" for linking *.so's, but the CROSSTOOL doesn't.
+ compiler_flags.insert(5, "-Wl,-no-as-needed")
return subprocess.call([CPU_CXX_COMPILER] + compiler_flags)
compiler_flags = compiler_flags + ['-D_GLIBCXX_USE_CXX11_ABI=0', '-DEIGEN_USE_SYCL=1']