]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp: Don't configure for offloading target if we don't build the corresponding...
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 2 Feb 2016 12:48:04 +0000 (13:48 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 2 Feb 2016 12:48:04 +0000 (13:48 +0100)
libgomp/
* plugin/configfrag.ac: Don't configure for offloading target if
we don't build the corresponding plugin.
* configure: Regenerate.

From-SVN: r233070

libgomp/ChangeLog
libgomp/configure
libgomp/plugin/configfrag.ac

index c94fa2774753813b0e9ff2be22267e2a9931c3d4..610074c3153ce0912692ff81f9df0acf1d4e3c3f 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * plugin/configfrag.ac: Don't configure for offloading target if
+       we don't build the corresponding plugin.
+       * configure: Regenerate.
+
 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
 
        * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
index 1410bc71223c834376bf728939dd41460cfcd2d2..d34a350e048583ef0dca8e01a4681a7c6e9d54fb 100755 (executable)
@@ -15323,6 +15323,7 @@ if test x"$enable_offload_targets" != x; then
   for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
     tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
     tgt=`echo $tgt | sed 's/=.*//'`
+    tgt_name=
     case $tgt in
       *-intelmic-* | *-intelmicemul-*)
        tgt_name=intelmic
@@ -15424,7 +15425,11 @@ rm -f core conftest.err conftest.$ac_objext \
        as_fn_error "unknown offload target specified" "$LINENO" 5
        ;;
     esac
-    if test x"$offload_targets" = x; then
+    if test x"$tgt_name" = x; then
+      # Don't configure libgomp for this offloading target if we don't build
+      # the corresponding plugin.
+      continue
+    elif test x"$offload_targets" = x; then
       offload_targets=$tgt_name
     else
       offload_targets=$offload_targets,$tgt_name
index 2a9d9f907e3eb9b24c46387dffa827f2e1caffc3..01815d41c8b17881f7e63628fc488c9504596a01 100644 (file)
@@ -146,6 +146,7 @@ if test x"$enable_offload_targets" != x; then
   for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
     tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
     tgt=`echo $tgt | sed 's/=.*//'`
+    tgt_name=
     case $tgt in
       *-intelmic-* | *-intelmicemul-*)
        tgt_name=intelmic
@@ -225,7 +226,11 @@ if test x"$enable_offload_targets" != x; then
        AC_MSG_ERROR([unknown offload target specified])
        ;;
     esac
-    if test x"$offload_targets" = x; then
+    if test x"$tgt_name" = x; then
+      # Don't configure libgomp for this offloading target if we don't build
+      # the corresponding plugin.
+      continue
+    elif test x"$offload_targets" = x; then
       offload_targets=$tgt_name
     else
       offload_targets=$offload_targets,$tgt_name