Skip to content

Commit 2864f60

Browse files
committed
TEST: trying to force system defined CC instead of hard-coded gcc
1 parent 3fd5605 commit 2864f60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tools/make-make.r

+8
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,14 @@ emit-file-deps: func [
385385

386386
replace makefile-head "!date" now
387387

388+
if all [
389+
cc: get-env "CC"
390+
pos: find makefile-head "CC="
391+
][
392+
;prefer system defined CC
393+
insert pos #"#"
394+
]
395+
388396
macro+ TO_OS to-def
389397
macro+ OS_ID os-plat
390398
macro+ LS pick ["dir" "ls -l"] flag? DIR

0 commit comments

Comments
 (0)