]> gcc.gnu.org Git - gcc.git/commitdiff
cilk-plus.exp: Add the libcilkrts library path to the compile flags.
authorTobias Burnus <burnus@net-b.de>
Wed, 30 Oct 2013 19:51:17 +0000 (20:51 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 30 Oct 2013 19:51:17 +0000 (20:51 +0100)
2013-10-30  Tobias Burnus  <burnus@net-b.de>

        * gcc.dg/cilk-plus/cilk-plus.exp: Add the libcilkrts library
        path to the compile flags.

From-SVN: r204227

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp

index 748ab127cba6fcfe885b4d1da1f70806d669c9bb..690c6fc29291c18537fd5badb1e9f61fe0bd998c 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-30  Tobias Burnus  <burnus@net-b.de>
+
+       * gcc.dg/cilk-plus/cilk-plus.exp: Add the libcilkrts library
+       path to the compile flags.
+
 2013-10-30  Mikael Pettersson  <mikpe@it.uu.se>
 
        * PR rtl-optimization/58369
index a8f00d493ee99d7a83093203186e0075d7cab6d7..0a9d19bf724abc42821891c650b5f1dfd7af143a 100644 (file)
@@ -26,7 +26,24 @@ if { ![check_effective_target_cilkplus] } {
 verbose "$tool $libdir" 1
 set library_var [get_multilibs]
 # Pointing the ld_library_path to the Cilk Runtime library binaries. 
-set ld_library_path "${library_var}/libcilkrts/.libs"
+if { $gccpath != "" } {
+  if { [file exists "${gccpath}/libcilkrts/.libs/libcilkrts.a"]
+       || [file exists "${gccpath}/libcilkrts/.libs/libcilkrts.${shlib_ext}"] } {
+      append flags " -B${gccpath}/libcilkrts/ "
+      append flags " -L${gccpath}/libcilkrts/.libs "
+      append ld_library_path ":${gccpath}/libcilkrts/.libs"
+  }
+} else {
+  global tool_root_dir
+
+  set libcilkrts [lookfor_file ${tool_root_dir} libcilkrts]
+  if { $libcilkrts != "" } {
+      append flags "-L${libcilkrts} "
+      append ld_library_path ":${libcilkrts}"
+  }
+}
+
+set_ld_library_path_env_vars
 
 dg-init
 dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
This page took 0.073094 seconds and 5 git commands to generate.