From 1113a1110712b6d80afe6835a1f7d717f6f90a73 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sun, 22 Oct 2017 17:40:59 -0200 Subject: [PATCH] And now we try to please *nix systems. --- source/qb64.bas | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/qb64.bas b/source/qb64.bas index 4cafe68d2..214ba8db5 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -23224,6 +23224,8 @@ END IF END SUB SUB Build (path$) +previous_dir$ = _CWD$ + 'Count the separators in the path depth = 1 FOR x = 1 TO LEN(path$) @@ -23251,14 +23253,17 @@ DO UNTIL EOF(bfh) IF os$ = "WIN" THEN SHELL _HIDE "cmd /C " + c$ + " 2>> " + return_path$ + "\" + compilelog$ ELSE - SHELL _HIDE c$ + " 2>> " + return_path$ + "/" + compilelog$ + SHELL _HIDE c$ + " 2>> " + previous_dir$ + "/" + compilelog$ END IF END IF LOOP CLOSE #bfh -CHDIR return_path$ - +IF os$ = "WIN" THEN + CHDIR return_path$ +ELSE + CHDIR previous_dir$ +END IF END SUB FUNCTION GDB_Fix$ (g_command$) 'edit a gcc/g++ command line to include debugging info