diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-08-21 15:46:33 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-08-21 15:46:33 +0000 |
commit | 574b8a39ea3c48e475d9c676b9258a6d38c2a66a (patch) | |
tree | bc78e170af6efa67e3a43a704e4fa05f39f60844 /lib | |
parent | f6b8e3c85ce6361d3c6162364eece3b024a7edf6 (diff) | |
download | FreeBSD-src-574b8a39ea3c48e475d9c676b9258a6d38c2a66a.zip FreeBSD-src-574b8a39ea3c48e475d9c676b9258a6d38c2a66a.tar.gz |
Modify clang so that when TOOLS_PREFIX is defined we register the
CLANG_PREFIX macro. This changes the default header search path when we
are building clang as part of cross-tools.
Submitted by: Dimitry Andric <dimitry at andric.com>
Reviewed by: freebsd-current
Diffstat (limited to 'lib')
-rw-r--r-- | lib/clang/clang.build.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 6351eda..86384db 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -28,6 +28,10 @@ LLVM_REQUIRES_RTTI= CFLAGS+=-fno-rtti .endif +.ifdef TOOLS_PREFIX +CFLAGS+=-DCLANG_PREFIX=\"${TOOLS_PREFIX}\" +.endif + .PATH: ${LLVM_SRCS}/${SRCDIR} TBLGEN=tblgen ${CFLAGS:M-I*} |