[前][次][番号順一覧][スレッド一覧]

ruby-changes:52597

From: nobu <ko1@a...>
Date: Fri, 21 Sep 2018 22:52:10 +0900 (JST)
Subject: [ruby-changes:52597] nobu:r64809 (trunk): configure.ac: prepend the wrapper after CPP is set

nobu	2018-09-21 22:52:03 +0900 (Fri, 21 Sep 2018)

  New Revision: 64809

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64809

  Log:
    configure.ac: prepend the wrapper after CPP is set

  Modified files:
    trunk/configure.ac
Index: configure.ac
===================================================================
--- configure.ac	(revision 64808)
+++ configure.ac	(revision 64809)
@@ -211,18 +211,6 @@ AS_CASE(["$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L211
       [xcc|x/usr/bin/cc],           [: ${CXX=c++}],
       [xicc],                       [: ${CXX=icpc}],
       [xclang|x/usr/bin/clang],     [: ${CXX=clang++}])
-
-    # Xcode linker warns for deprecated architecture and wrongly
-    # installed TBD files.
-    CC_WRAPPER=""
-    AS_IF([! $CC -E -xc - <<SRC >/dev/null 2>&1], [
-	@%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ >= 10
-	@%:@error ignore linker warnings
-	@%:@endif
-SRC
-	CC_WRAPPER=`PWD=; cd "$srcdir/tool" && pwd`/darwin-cc
-	CC="$CC_WRAPPER $CC"
-    ])
   ])
 test -z "$CXX" || ac_cv_prog_CXX="$CXX"
 
@@ -260,6 +248,21 @@ AC_SUBST(OUTFLAG) https://github.com/ruby/ruby/blob/trunk/configure.ac#L248
 AC_SUBST(COUTFLAG)
 AC_SUBST(CSRCFLAG)
 
+AS_CASE(["$build_os"],
+  [darwin1*.*], [
+    # Xcode linker warns for deprecated architecture and wrongly
+    # installed TBD files.
+    CC_WRAPPER=""
+    AS_IF([! $CC -E -xc - <<SRC >/dev/null 2>&1], [
+	@%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ >= 10
+	@%:@error ignore linker warnings
+	@%:@endif
+SRC
+	CC_WRAPPER=`PWD=; cd "$srcdir/tool" && pwd`/darwin-cc
+	CC="$CC_WRAPPER $CC"
+    ])
+  ])
+
 cc_version=
 for option in --version -v -V -qversion; do
     cc_version_message=`$CC $option 2>&1`

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]