diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-31 17:00:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-31 17:00:48 +0000 |
commit | d3d22631ca0b314f0564a9bcfe96dd2d6ca85fa6 (patch) | |
tree | 769c0aff878accac1216a06b777b0abb0b3180f6 /make | |
parent | 48f46ac1d9a82210f6e469567cb60aa7e7cd2f3b (diff) |
Add new build option KERNEL_USE, which compiles with -mkernel and gets propogated to CFLAGS. Use this to call panic() instead of abort() when enabled.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@100015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/lib_info.mk | 3 | ||||
-rw-r--r-- | make/platform/clang_darwin.mk | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/make/lib_info.mk b/make/lib_info.mk index a54152a4f..72bc4a17f 100644 --- a/make/lib_info.mk +++ b/make/lib_info.mk @@ -47,4 +47,5 @@ $(foreach key,$(SubDirKeys),\ AvailableOptions := AR ARFLAGS \ CC CFLAGS FUNCTIONS OPTIMIZED \ RANLIB RANLIBFLAGS \ - VISIBILITY_HIDDEN + VISIBILITY_HIDDEN \ + KERNEL_USE diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk index ffa0dabb4..d6856807b 100644 --- a/make/platform/clang_darwin.mk +++ b/make/platform/clang_darwin.mk @@ -242,4 +242,6 @@ FUNCTIONS.cc_kext.i386 := \ FUNCTIONS.cc_kext.x86_64 := \ $(filter-out $(CCKEXT_MISSING_FUNCTIONS),$(FUNCTIONS.cc_kext.x86_64)) +KERNEL_USE.cc_kext := 1 + VISIBILITY_HIDDEN := 1 |