Make SBCL buildable by Clang.
authorStas Boukarev <stassats@gmail.com>
Sun, 11 Mar 2012 03:41:29 +0000 (07:41 +0400)
committerStas Boukarev <stassats@gmail.com>
Sun, 11 Mar 2012 03:41:29 +0000 (07:41 +0400)
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.

NEWS
contrib/asdf-module.mk
src/runtime/gencgc-internal.h

diff --git a/NEWS b/NEWS
index affcb0c..fa6803a 100644 (file)
--- 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:
index d3ffbad..873606b 100644 (file)
@@ -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
index 978bb92..8640fe6 100644 (file)
@@ -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 *);
 \f