Commit 82bf2c72 authored by Raymond Toy's avatar Raymond Toy

Add support for compiling with clang on x86/linux

Add `Config.x86_linux_clang` to use clang instead of gcc to build
cmucl.  update `create-target.sh` so that it sets the motif variant
correctly when using `Config.x86_linux_clang`

See issue #68.

With this config, Fedora 28 successfully builds cmucl and passes all
the tests.
parent 1d6d12de
Pipeline #328 passed with stage
in 17 minutes and 15 seconds
......@@ -83,7 +83,7 @@ case $uname_s in
hp700*) motif_variant=hpux_cc ;;
pmax_mach) motif_variant=pmax_mach ;;
sgi*) motif_variant=irix ;;
x86_linux|linux*) motif_variant=x86 ;;
x86_linux*|linux*) motif_variant=x86 ;;
esac
}
[ -f src/motif/server/Config.$motif_variant ] || quit "No such motif-variant could be found: Config.$motif_variant"
......
# -*- Mode: makefile -*-
include Config.x86_common
CC = clang
CPPFLAGS += -m32 -D__NO_CTYPE -D_GNU_SOURCE
CFLAGS += -march=pentium4 -mfpmath=sse -mtune=generic
UNDEFSYMPATTERN = -Xlinker -u -Xlinker &
ASSEM_SRC += linux-stubs.S
OS_SRC += Linux-os.c elf.c
OS_LIBS = -ldl
OS_LINK_FLAGS = -m32 -rdynamic -Xlinker --export-dynamic -Xlinker -Map -Xlinker foo
OS_LINK_FLAGS += -Wl,-z,noexecstack
EXEC_FINAL_OBJ = exec-final.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment