From: Stas Boukarev Date: Sun, 11 Mar 2012 03:41:29 +0000 (+0400) Subject: Make SBCL buildable by Clang. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=512c78f5f0c8e4c11bad219313dd83890f625006;p=sbcl.git Make SBCL buildable by Clang. The only changes needed were a modification to use $CC when building contribs, and inline declaration incompatibility for a couple of functions. Closes lp#658414. --- diff --git a/NEWS b/NEWS index affcb0c..fa6803a 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ ;;;; -*- coding: utf-8; fill-column: 78 -*- changes relative to sbcl-1.0.55: + * enhancements + ** SBCL can now be built using Clang. * bug fix: compiler errors when weakening hairy integer types. (lp#913232) changes in sbcl-1.0.55 relative to sbcl-1.0.54: diff --git a/contrib/asdf-module.mk b/contrib/asdf-module.mk index d3ffbad..873606b 100644 --- a/contrib/asdf-module.mk +++ b/contrib/asdf-module.mk @@ -1,4 +1,4 @@ -CC=gcc +CC?=gcc # We need to extend flags to the C compiler and the linker # here. sb-posix, sb-grovel, and sb-bsd-sockets depends upon these diff --git a/src/runtime/gencgc-internal.h b/src/runtime/gencgc-internal.h index 978bb92..8640fe6 100644 --- a/src/runtime/gencgc-internal.h +++ b/src/runtime/gencgc-internal.h @@ -25,8 +25,8 @@ #include "genesis/code.h" void gc_free_heap(void); -inline page_index_t find_page_index(void *); -inline void *page_address(page_index_t); +extern page_index_t find_page_index(void *); +extern void *page_address(page_index_t); int gencgc_handle_wp_violation(void *);