PERFORCE change 179675 for review
Andrius Morkunas
andrius at FreeBSD.org
Wed Jun 16 11:48:54 UTC 2010
http://p4web.freebsd.org/@@179675?ac=10
Change 179675 by andrius at klevas on 2010/06/16 11:48:11
Add NO_USE_CC.
If defined, NO_USE_CC forces USE_CC and USE_GCC to be ignored.
Before, there was no way to NOT respect USE_CC/USE_GCC variables.
Affected files ...
.. //depot/projects/soc2010/clangports/ports/Mk/bsd.compiler.mk#2 edit
Differences ...
==== //depot/projects/soc2010/clangports/ports/Mk/bsd.compiler.mk#2 (text+ko) ====
@@ -3,6 +3,11 @@
# PORTS_CXX should only be set if PORTS_CC is neither gcc nor clang
PORTS_CXX?= g++
+.if defined(NO_USE_CC)
+.undef USE_CC
+.undef USE_GCC
+.endif
+
# Handle USE_CC
.if defined(USE_CC)
# Check if port requires specific compiler
@@ -35,7 +40,6 @@
# Clang
.elif !empty(PORTS_CC:Mclang*)
-# TODO: handle something like USE_CLANG here when/if there's need for that
CC= clang
CXX= clang++
.else
More information about the p4-projects
mailing list