alnyan/yggdrasil: force cross-compilation for clang
This commit is contained in:
parent
c4667caea2
commit
8840f9fe48
5
Make.inc
5
Make.inc
@ -47,7 +47,7 @@ AR := $(TOOLPREFIX)ar
|
||||
|
||||
ifeq ($(USECLANG),1)
|
||||
USEGCC ?= 0
|
||||
CC = clang
|
||||
CC ?= clang
|
||||
CFLAGS_add += -fno-builtin -fno-strict-aliasing
|
||||
endif
|
||||
|
||||
@ -144,6 +144,9 @@ ifeq ($(ARCH),wasm32)
|
||||
CFLAGS_arch += -ffreestanding -nostdlib -nostdinc --target=wasm32-unknown-unknown
|
||||
endif
|
||||
|
||||
LDFLAGS_arch += --sysroot=$(SYSROOT) --target=$(TRIPLE)
|
||||
CFLAGS_arch += --target=$(TRIPLE) -ffreestanding
|
||||
|
||||
# Add our "arch"-related FLAGS in. We separate arch-related flags out so that
|
||||
# we can conveniently get at them for targets that don't want the rest of
|
||||
# *FLAGS_add, such as the testing Makefile targets
|
||||
|
Loading…
x
Reference in New Issue
Block a user