mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Use ${CC} instead of 'clang' to detect whether /usr/bin/cc is gcc or clang.
This commit is contained in:
parent
2da7bb121a
commit
b08ca0d75a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321961
@ -29,7 +29,7 @@ OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
_CLANG!= clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
|
||||
_CLANG!= ${CC} --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
|
||||
|
||||
.if ${CXX:T} != "clang++" && !defined(_CLANG)
|
||||
CXXFLAGS+= --no-exceptions
|
||||
|
Loading…
Reference in New Issue
Block a user