diff options
author | 2016-12-15 17:45:11 +0100 | |
---|---|---|
committer | 2016-12-15 08:45:11 -0800 | |
commit | a3258398caae5f24a43e3eb73c4051ad8eb417ac (patch) | |
tree | ce70940408b4171fc3147ec7a789118b7d8b5c7f /third_party/sycl/crosstool/computecpp.tpl | |
parent | 97c410c884865703e463742bb9b4a53c8588e4fd (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-x | third_party/sycl/crosstool/computecpp.tpl | 2 |
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'] |