File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -222,13 +222,19 @@ APP_FLAGS_APP_LOAD_PARAMS = $(shell printf '0x%x' $$(( $(STANDARD_APP_FLAGS) + $
222
222
#####################################################################
223
223
# COMPILER SETTINGS #
224
224
#####################################################################
225
- CC := $(CLANGPATH)clang
226
- AS := $(CLANGPATH)clang
227
- LD := $(CLANGPATH)clang
228
- ifeq ($(AS),$(CLANGPATH)clang)
229
- AFLAGS += --target=arm-arm-none-eabi
225
+ CC = $(CLANGPATH)clang
226
+ AS = $(CLANGPATH)clang
227
+ ifeq ($(TARGET_NAME),TARGET_NANOS)
228
+ LD = $(GCCPATH)arm-none-eabi-gcc
229
+ LDLIBS += -lgcc
230
+ else
231
+ LD = $(CLANGPATH)clang
232
+ LDLIBS += -lclang_rt.builtins
230
233
endif
231
- LDLIBS += -lm -lgcc -lc
234
+
235
+ AFLAGS += --target=arm-none-eabi
236
+
237
+ LDLIBS += -lm -lc
232
238
233
239
#####################################################################
234
240
# MISC #
You can’t perform that action at this time.
0 commit comments