@@ -25,7 +25,7 @@ GOTO :EOF
25
25
SET COMPILER_TOOL = %1
26
26
SET COMPILER_TOOL_VERSION_NUM = %2
27
27
SET COMPILER_TOOL_VERSION = %1%2
28
- SET ARG3 = %~3
28
+ SET " ARG3 = %~3 "
29
29
30
30
SET TFSCONFIG = MFConfig.xml
31
31
@@ -106,7 +106,10 @@ rem @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
106
106
@ echo setting vars for GCC compiler %COMPILER_TOOL_VERSION%
107
107
108
108
rem use a default for GCC
109
- IF " %ARG3% " == " " SET ARG3 = %SystemDrive% \gnu\gcc
109
+ IF " %ARG3% " == " " (
110
+ SET " ARG3 = %SystemDrive% \gnu\gcc"
111
+ IF NOT EXIST " %ARG3% " set " ARG3 = %ProgramFiles(x86)% \GNU Tools ARM Embedded\4.9 2015q1"
112
+ )
110
113
IF NOT EXIST " %ARG3% " GOTO :BAD_GCC_ARG
111
114
112
115
set ARMROOT =
@@ -119,13 +122,13 @@ set DOTNETMF_COMPILER=%COMPILER_TOOL_VERSION%
119
122
120
123
IF /I " %COMPILER_TOOL% " == " GCC" (
121
124
IF EXIST " %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION% " (
122
- set ARMINC = %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION% \include
123
- set ARMLIB = %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION%
124
- set GNU_TOOLS = %ARG3%
125
- set GNU_TOOLS_BIN = %ARG3% \bin
125
+ set " ARMINC = %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION% \include"
126
+ set " ARMLIB = %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION% "
127
+ set " GNU_TOOLS = %ARG3% "
128
+ set " GNU_TOOLS_BIN = %ARG3% \bin"
126
129
set GNU_TARGET = arm-none-eabi
127
130
) ELSE (
128
- @ ECHO Could not find %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION%
131
+ @ ECHO Could not find " %ARG3% \lib\gcc\arm-none-eabi\%GNU_VERSION% "
129
132
GOTO :BAD_GCC_ARG
130
133
))
131
134
0 commit comments