mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
And now we try to please *nix systems.
This commit is contained in:
parent
f223cfe028
commit
1113a11107
|
@ -23224,6 +23224,8 @@ END IF
|
||||||
END SUB
|
END SUB
|
||||||
|
|
||||||
SUB Build (path$)
|
SUB Build (path$)
|
||||||
|
previous_dir$ = _CWD$
|
||||||
|
|
||||||
'Count the separators in the path
|
'Count the separators in the path
|
||||||
depth = 1
|
depth = 1
|
||||||
FOR x = 1 TO LEN(path$)
|
FOR x = 1 TO LEN(path$)
|
||||||
|
@ -23251,14 +23253,17 @@ DO UNTIL EOF(bfh)
|
||||||
IF os$ = "WIN" THEN
|
IF os$ = "WIN" THEN
|
||||||
SHELL _HIDE "cmd /C " + c$ + " 2>> " + return_path$ + "\" + compilelog$
|
SHELL _HIDE "cmd /C " + c$ + " 2>> " + return_path$ + "\" + compilelog$
|
||||||
ELSE
|
ELSE
|
||||||
SHELL _HIDE c$ + " 2>> " + return_path$ + "/" + compilelog$
|
SHELL _HIDE c$ + " 2>> " + previous_dir$ + "/" + compilelog$
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
LOOP
|
LOOP
|
||||||
CLOSE #bfh
|
CLOSE #bfh
|
||||||
|
|
||||||
CHDIR return_path$
|
IF os$ = "WIN" THEN
|
||||||
|
CHDIR return_path$
|
||||||
|
ELSE
|
||||||
|
CHDIR previous_dir$
|
||||||
|
END IF
|
||||||
END SUB
|
END SUB
|
||||||
|
|
||||||
FUNCTION GDB_Fix$ (g_command$) 'edit a gcc/g++ command line to include debugging info
|
FUNCTION GDB_Fix$ (g_command$) 'edit a gcc/g++ command line to include debugging info
|
||||||
|
|
Loading…
Reference in a new issue