Skip to content

Commit 5cc4292

Browse files
authored
Merge pull request #4855 from rescript-lang/compiler_changes
[internal changes] changes of ocamlcommon.cmxa will trigger a rebuild to improve feedback loop when tweaking compilers
2 parents 6d4c525 + c496cc7 commit 5cc4292

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/ninja.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,14 +1576,15 @@ function nativeNinja() {
15761576

15771577
var templateNative = `
15781578
subninja ${getPreprocessorFileName()}
1579+
compilerlibs := ../native/4.06.1/lib/ocaml/compiler-libs/ocamlcommon.cmxa
15791580
rule optc
1580-
command = $ocamlopt -safe-string -I +compiler-libs -opaque ${includes} -g -linscan -w A-4-9-40..42-30-48-50 -warn-error A -absname -c $in
1581+
command = $ocamlopt -safe-string -I +compiler-libs -opaque ${includes} -g -linscan -w A-4-9-40..42-30-48-50 -warn-error A -absname -c $in # $compilerlibs
15811582
description = $out : $in
15821583
rule archive
15831584
command = $ocamlopt -a $in -o $out
15841585
description = arcive -> $out
15851586
rule link
1586-
command = $ocamlopt -g -I +compiler-libs $flags $libs $in -o $out
1587+
command = $ocamlopt -g -I +compiler-libs $flags $libs $in -o $out # $compilerlibs
15871588
description = linking -> $out
15881589
rule mk_bsversion
15891590
command = node $in

0 commit comments

Comments
 (0)