mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 14:23:01 +00:00
Makefile: Fix build when using clang as AS
Unlike gcc, clang enforces -mgeneral-regs-only when used as the assembler so this removes that flag to fix the error in #393. This is only needed for utils_asm.S which has code saving/restoring SIMD state, but this commit applies it to all asm files for simplicity since code for fp regs shouldn't be generated unless they're explicitly used anyway. Signed-off-by: Ayrton Munoz <a.munoz3327@gmail.com>
This commit is contained in:
parent
69d241ccc2
commit
58fe1d7f0c
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -193,7 +193,7 @@ build/%.o: src/%.S
|
|||
$(QUIET)echo " AS $@"
|
||||
$(QUIET)mkdir -p $(DEPDIR)
|
||||
$(QUIET)mkdir -p "$(dir $@)"
|
||||
$(QUIET)$(AS) -c $(CFLAGS) -MMD -MF $(DEPDIR)/$(*F).d -MQ "$@" -MP -o $@ $<
|
||||
$(QUIET)$(AS) -c $(BASE_CFLAGS) -MMD -MF $(DEPDIR)/$(*F).d -MQ "$@" -MP -o $@ $<
|
||||
|
||||
$(BUILD_FP_OBJS): build/%.o: src/%.c
|
||||
$(QUIET)echo " CC FP $@"
|
||||
|
|
Loading…
Reference in a new issue