File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,14 @@ ifneq ($(CONFIG_LTO_FULL)$(CONFIG_LTO_THIN),)
61
61
endif
62
62
63
63
# Build other compiler flags from native compiler
64
-
65
- CFLAGS_STRIP = -fsanitize=kernel-address -fsanitize=address -fsanitize=undefined
66
- CFLAGS_STRIP += $(ARCHCPUFLAGS) $(ARCHCFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(ARCHOPTIMIZATION) $(EXTRAFLAGS)
64
+ # Filter out some flags that wasm-clang does not support,
65
+ # -m%: Machine flags, -mcpu=, -mfpu=, -mfloat-abi= etc.
66
+ # -Wl,%: Extra linker flags, wasm-ld don't support many of them.
67
+ # -fsanitize%: -fsanitize=address, -fsanitize=thread etc.
68
+ # -fno-sanitize%: -fno-sanitize=address, -fno-sanitize=thread etc.
69
+ # -W%: Warning flags, clang is more strict than gcc
70
+
71
+ CFLAGS_STRIP = -m% -Wl,% -fsanitize% -fno-sanitize% -W%
67
72
68
73
WCFLAGS += $(filter-out $(CFLAGS_STRIP),$(CFLAGS))
69
74
WCFLAGS += --sysroot=$(WSYSROOT) -nostdlib -D__NuttX__
You can’t perform that action at this time.
0 commit comments