freebsd clang support

This commit is contained in:
Jyun-Yan You 2012-01-22 15:03:12 +08:00 committed by Brian Anderson
parent 2898dcc5d9
commit c2bf9b7726
3 changed files with 7 additions and 2 deletions

3
configure vendored
View File

@ -340,7 +340,8 @@ then
CFG_CLANG_VERSION=$("$CFG_CLANG" \
--version \
| grep version \
| cut -d ' ' -f 3)
| sed 's/.*\(version .*\)/\1/' \
| cut -d ' ' -f 2)
case $CFG_CLANG_VERSION in
(3.0svn | 3.0 | 3.1)

View File

@ -188,7 +188,7 @@ ifeq ($(CFG_C_COMPILER),clang)
CC=clang
CXX=clang++
CPP=cpp
CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
CFG_GCCISH_CFLAGS += -Wall -Werror -Wno-c++11-compat -fno-rtti -g
CFG_GCCISH_LINK_FLAGS += -g
CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
-MM $(2)

View File

@ -17,6 +17,8 @@ typedef int _Unwind_Reason_Code;
#if (defined __APPLE__) || (defined __clang__)
#ifndef __FreeBSD__
typedef int _Unwind_Action;
typedef void _Unwind_Exception;
@ -24,3 +26,5 @@ typedef void _Unwind_Exception;
#endif
#endif