1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-02 03:50:36 +00:00

Add -p switch for purging precompiled content

This commit is contained in:
Luke Ceddia 2017-12-31 00:33:36 +11:00
parent 4873612275
commit 8151a0b8b8

View file

@ -12680,6 +12680,7 @@ FOR i = 1 TO _COMMANDCOUNT
PRINT " -c Compile instead of edit"
PRINT " -x Compile instead of edit and output the result to the"
PRINT " console"
PRINT " -p Purge all pre-compiled content first"
PRINT " -z Generate C code without compiling to executable"
PRINT " -o <file> Write output executable to <file>"
PRINT " -e Enables OPTION _EXPLICIT, making variable declaration"
@ -12689,6 +12690,22 @@ FOR i = 1 TO _COMMANDCOUNT
PRINT " -l:<line number> Starts the IDE at the specified line number"
PRINT
SYSTEM
CASE "-p", "/p" 'Purge
IF os$ = "WIN" THEN
CHDIR "internal\c"
SHELL _HIDE "cmd /c purge_all_precompiled_content_win.bat"
CHDIR "..\.."
END IF
IF os$ = "LNX" THEN
CHDIR "./internal/c"
IF INSTR(_OS$, "[MACOSX]") THEN
SHELL _HIDE "./purge_all_precompiled_content_osx.command"
ELSE
SHELL _HIDE "./purge_all_precompiled_content_lnx.sh"
END IF
CHDIR "../.."
END IF
CASE "-s", "/s" 'Settings
_DEST _CONSOLE
PRINT "QB64 COMPILER V" + Version$