Skip to content

Commit 58fe1d7

Browse files
ayrtonmmarcan
authored andcommitted
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 <[email protected]>
1 parent 69d241c commit 58fe1d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ build/%.o: src/%.S
193193
$(QUIET)echo " AS $@"
194194
$(QUIET)mkdir -p $(DEPDIR)
195195
$(QUIET)mkdir -p "$(dir $@)"
196-
$(QUIET)$(AS) -c $(CFLAGS) -MMD -MF $(DEPDIR)/$(*F).d -MQ "$@" -MP -o $@ $<
196+
$(QUIET)$(AS) -c $(BASE_CFLAGS) -MMD -MF $(DEPDIR)/$(*F).d -MQ "$@" -MP -o $@ $<
197197

198198
$(BUILD_FP_OBJS): build/%.o: src/%.c
199199
$(QUIET)echo " CC FP $@"

0 commit comments

Comments
 (0)