Changeset 1570759b in mainline for kernel/Makefile


Ignore:
Timestamp:
2013-03-10T22:00:33Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26bcc658
Parents:
39ba6d5
Message:

amd64 compiles with clang again

Well, almost. Some of the files are actually compiled by gcc and
the GNU linker from binutils is used because llvm-link does not
support custom linker script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r39ba6d5 r1570759b  
    100100        -Werror-implicit-function-declaration -wd170
    101101
     102# clang does not support following options but I am not sure whether
     103# something won't break because of that:
     104# -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    102105CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    103         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    104         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     106        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    105107        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    106108        -Werror-implicit-function-declaration -Wwrite-strings \
    107         -pipe -arch $(CLANG_ARCH)
     109        -pipe -target $(CLANG_TARGET)
    108110
    109111ifeq ($(CONFIG_DEBUG),y)
     
    387389
    388390$(LINK): $(LINK).in $(DEPEND)
    389         $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
     391        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
    390392
    391393%.o: %.S $(DEPEND)
Note: See TracChangeset for help on using the changeset viewer.