Skip to content

Commit 1259c14

Browse files
authored
Merge pull request #11 from Seeed-Studio/add-sketch-include
Add sketch folder include path to compiler flags
2 parents 3504d2e + 2366073 commit 1259c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ compiler.optimization_flag=-Ofast
3333

3434
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
3535
compiler.c.cmd=arm-none-eabi-gcc
36-
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
36+
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -I{build.source.path}
3737
compiler.c.elf.cmd=arm-none-eabi-g++
3838
compiler.c.elf.flags={compiler.optimization_flag} -Wl,--gc-sections -save-temps
3939
compiler.S.cmd=arm-none-eabi-gcc
40-
compiler.S.flags=-mcpu={build.mcu} -mthumb -mabi=aapcs {compiler.optimization_flag} -g -c {build.float_flags} -x assembler-with-cpp
40+
compiler.S.flags=-mcpu={build.mcu} -mthumb -mabi=aapcs {compiler.optimization_flag} -g -c {build.float_flags} -x assembler-with-cpp -I{build.source.path}
4141

4242
compiler.cpp.cmd=arm-none-eabi-g++
43-
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
43+
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.warning_flags} {build.float_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -I{build.source.path}
4444
compiler.ar.cmd=arm-none-eabi-ar
4545
compiler.ar.flags=rcs
4646
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)