File tree Expand file tree Collapse file tree 4 files changed +1402
-937
lines changed Expand file tree Collapse file tree 4 files changed +1402
-937
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ mkdir "%SCRIPT_DIR%\_Build\_Tools\Windows" 2>nul
4242if not exist " %BOOTSTRAP_EXE% " (
4343 set build_bootstrap = 1
4444) else (
45- for %%f in (" %SCRIPT_DIR% \Tools\ToolsBootstrap.cpp " ) do set source_time = %%~tf
45+ for %%f in (" %SCRIPT_DIR% \Tools\ToolsBootstrap.c " ) do set source_time = %%~tf
4646 for %%f in (" %BOOTSTRAP_EXE% " ) do set exe_time = %%~tf
4747 if " !source_time! " gtr " !exe_time! " (set build_bootstrap=1) else (set build_bootstrap=0)
4848)
4949
5050if !build_bootstrap! equ 1 (
51- set SRC_FILE = !SCRIPT_DIR! \Tools\ToolsBootstrap.cpp
51+ set SRC_FILE = !SCRIPT_DIR! \Tools\ToolsBootstrap.c
5252 set OBJ_FILE = !SCRIPT_DIR! \_Build\_Tools\Windows\ToolsBootstrap.obj
53- cl.exe /nologo /std:c++14 / MTd /Fo" !OBJ_FILE! " /c " !SRC_FILE! " 2 >& 1
53+ cl.exe /nologo /MTd /Fo" !OBJ_FILE! " /c " !SRC_FILE! " 2 >& 1
5454 if !errorlevel! neq 0 (
5555 echo Failed to build ToolsBootstrap
5656 exit /b 1
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ BOOTSTRAP_EXE="${SCRIPT_DIR}/_Build/_Tools/${PLATFORM}/ToolsBootstrap"
1010mkdir -p " ${SCRIPT_DIR} /_Build/_Tools/${PLATFORM} "
1111
1212# Check if ToolsBootstrap needs to be built
13- if [ ! -f " $BOOTSTRAP_EXE " ] || [ " ${SCRIPT_DIR} /Tools/ToolsBootstrap.cpp " -nt " $BOOTSTRAP_EXE " ]; then
14- echo " ToolsBootstrap.cpp "
15- if command -v clang++ > /dev/null 2>&1 ; then
16- clang++ -o " $BOOTSTRAP_EXE " " ${SCRIPT_DIR} /Tools/ToolsBootstrap.cpp " -std=c++14 -pthread
13+ if [ ! -f " $BOOTSTRAP_EXE " ] || [ " ${SCRIPT_DIR} /Tools/ToolsBootstrap.c " -nt " $BOOTSTRAP_EXE " ]; then
14+ echo " ToolsBootstrap.c "
15+ if command -v cc > /dev/null 2>&1 ; then
16+ cc -o " $BOOTSTRAP_EXE " " ${SCRIPT_DIR} /Tools/ToolsBootstrap.c " -std=c99
1717 else
18- g++ -o " $BOOTSTRAP_EXE " " ${SCRIPT_DIR} /Tools/ToolsBootstrap.cpp " -std=c++14 -pthread
18+ gcc -o " $BOOTSTRAP_EXE " " ${SCRIPT_DIR} /Tools/ToolsBootstrap.c " -std=c99
1919 fi
2020 if [ $? -ne 0 ]; then
2121 echo " Failed to build ToolsBootstrap"
You can’t perform that action at this time.
0 commit comments