Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools detect clang instead of bundling it with Darwin
details: https://anonhg.NetBSD.org/src/rev/eaeccdc843bd
branches: trunk
changeset: 445277:eaeccdc843bd
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 21 00:26:24 2018 +0000
description:
detect clang instead of bundling it with Darwin
diffstat:
tools/Makefile.gnuhost | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r d279a04bb340 -r eaeccdc843bd tools/Makefile.gnuhost
--- a/tools/Makefile.gnuhost Sat Oct 20 14:09:47 2018 +0000
+++ b/tools/Makefile.gnuhost Sun Oct 21 00:26:24 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.gnuhost,v 1.49 2018/10/14 10:23:32 martin Exp $
+# $NetBSD: Makefile.gnuhost,v 1.50 2018/10/21 00:26:24 christos Exp $
#
# Rules used when building a GNU host package. Expects MODULE to be set.
#
@@ -19,7 +19,8 @@
# Disable use of pre-compiled headers on Darwin.
BUILD_OSTYPE!= uname -s
-.if ${BUILD_OSTYPE} == "Darwin"
+HOST_COMPILER_CLANG != if ${HOST_CC} --version | grep -q -s clang; then echo yes; else echo no; fi
+.if ${HOST_COMPILER_CLANG} == "yes"
HOST_CFLAGS+=-O2 -no-cpp-precomp
.endif
Home |
Main Index |
Thread Index |
Old Index