diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-09 14:29:00 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-09 14:29:00 +0100 |
commit | 4914f3b8378e090d8ce54cd318dedc47783cf2eb (patch) | |
tree | 709510f0df1c338b36bbbb6962c7887449e997a9 /LibC/Makefile | |
parent | ebf308d413640c2bc405ac7bf5930f2aa4e7e1d8 (diff) | |
download | serenity-4914f3b8378e090d8ce54cd318dedc47783cf2eb.zip |
Build LibC and Userland with clang as well.
Diffstat (limited to 'LibC/Makefile')
-rw-r--r-- | LibC/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LibC/Makefile b/LibC/Makefile index fd35ae7286..fa584a4c6f 100644 --- a/LibC/Makefile +++ b/LibC/Makefile @@ -34,14 +34,14 @@ ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -falign-functions=1 -falign-jumps=1 -falign-loops=1 -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic +OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables INCLUDE_FLAGS = -I.. -I. DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES) -CXX = g++-8 +CXX = clang LD = ld AR = ar LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now |