File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 11name=Air MCU
2- version=0.1.4
2+ version=0.1.5
33
44## compiler variables 编译器的路径
55compiler.path={runtime.tools.xpack-arm-none-eabi-gcc.path}/bin/
Original file line number Diff line number Diff line change @@ -3,21 +3,11 @@ set BUILD_PATH=%1
33set BUILD_SOURCE_PATH = %2
44set BOARD_PLATFORM_PATH = %3
55
6- :: 如果 sketch 目录不存在,则创建该目录
76if not exist " %BUILD_PATH% \sketch" mkdir " %BUILD_PATH% \sketch"
8-
9- :: 如果原始的 sketch 目录中不存在 build_opt.h 文件,则创建空的 build.opt 文件
10- :: 然后添加或追加 -fmacro-prefix-map 选项以将 __FILE__ 的绝对路径转换为相对路径
11- :: (即包含 boards.txt 文件的文件夹)。
127if not exist " %BUILD_SOURCE_PATH% \build_opt.h" (
138 echo -e " -fmacro-prefix-map=\" %BOARD_PLATFORM_PATH:\ =\\ % \" =." > " %BUILD_PATH% \sketch\build.opt"
149) else (
15- :: 否则将 build_opt.h 文件复制为 build.opt
16- :: 这是对 arduino-cli 执行的头文件预处理的一种解决方法
17- :: 参见 https://github.com/arduino/arduino-cli/issues/1338
1810 copy " %BUILD_SOURCE_PATH% \build_opt.h" " %BUILD_PATH% \sketch\build.opt"
1911 echo -e " -fmacro-prefix-map=\" %BOARD_PLATFORM_PATH:\ =\\ % \" =." >> " %BUILD_PATH% \sketch\build.opt"
2012)
21-
22- :: 强制包含 SrcWrapper 库
2313echo #include ^ < SrcWrapper.h^ > > " %BUILD_PATH% \sketch\SrcWrapper.cpp"
You can’t perform that action at this time.
0 commit comments