From 4be2084864d837724bf5b6d6addc01ff0d52f47b Mon Sep 17 00:00:00 2001 From: HalfSweet Date: Fri, 10 Nov 2023 20:48:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DWindows=E4=B8=8Bbuild?= =?UTF-8?q?=5Fopt.h=E4=B8=AD=E6=9C=AB=E5=B0=BE=E6=B2=A1=E6=9C=89=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E5=8F=AF=E8=83=BD=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/extras/prebuild.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/extras/prebuild.bat b/system/extras/prebuild.bat index 506805b..f3f62c2 100644 --- a/system/extras/prebuild.bat +++ b/system/extras/prebuild.bat @@ -5,9 +5,10 @@ set BOARD_PLATFORM_PATH=%3 if not exist "%BUILD_PATH%\sketch" mkdir "%BUILD_PATH%\sketch" if not exist "%BUILD_SOURCE_PATH%\build_opt.h" ( - echo -e "-fmacro-prefix-map=\"%BOARD_PLATFORM_PATH:\=\\%\"=." > "%BUILD_PATH%\sketch\build.opt" + echo "\n-fmacro-prefix-map=\"%BOARD_PLATFORM_PATH:\=\\%\"=." > "%BUILD_PATH%\sketch\build.opt" ) else ( copy "%BUILD_SOURCE_PATH%\build_opt.h" "%BUILD_PATH%\sketch\build.opt" - echo -e "-fmacro-prefix-map=\"%BOARD_PLATFORM_PATH:\=\\%\"=." >> "%BUILD_PATH%\sketch\build.opt" + echo. >> "%BUILD_PATH%\sketch\build.opt" + echo "-fmacro-prefix-map=\"%BOARD_PLATFORM_PATH:\=\\%\"=." >> "%BUILD_PATH%\sketch\build.opt" ) echo #include ^ > "%BUILD_PATH%\sketch\SrcWrapper.cpp"