Skip to content

Commit 262d142

Browse files
committed
Switch the compiler to build in uncurried mode.
1 parent c57264c commit 262d142

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

jscomp/build_tests/super_errors/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const fixtures = fs
1111
.filter(fileName => path.extname(fileName) === ".res");
1212

1313
// const runtime = path.join(__dirname, '..', '..', 'runtime')
14-
const prefix = `${bsc} -w +A -curried`;
14+
const prefix = `${bsc} -w +A -uncurried`;
1515

1616
const updateTests = process.argv[2] === "update";
1717

scripts/ninja.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ async function runtimeNinja(devmode = true) {
782782
var externalDeps = devmode ? [compilerTarget] : [];
783783
var ninjaOutput = devmode ? "build.ninja" : "release.ninja";
784784
var templateRuntimeRules = `
785-
bsc_no_open_flags = ${commonBsFlags} -bs-cross-module-opt -make-runtime -nopervasives -unsafe -w +50 -warn-error A -curried
785+
bsc_no_open_flags = ${commonBsFlags} -bs-cross-module-opt -make-runtime -nopervasives -unsafe -w +50 -warn-error A -uncurried
786786
bsc_flags = $bsc_no_open_flags -open Bs_stdlib_mini
787787
${ruleCC(ninjaCwd)}
788788
${ninjaQuickBuildList([
@@ -791,7 +791,7 @@ ${ninjaQuickBuildList([
791791
"bs_stdlib_mini.resi",
792792
"cc",
793793
ninjaCwd,
794-
[["bsc_flags", "-nostdlib -nopervasives -curried"]],
794+
[["bsc_flags", "-nostdlib -nopervasives -uncurried"]],
795795
[],
796796
externalDeps,
797797
],
@@ -863,7 +863,7 @@ async function othersNinja(devmode = true) {
863863
var ninjaCwd = "others";
864864

865865
var templateOthersRules = `
866-
bsc_primitive_flags = ${commonBsFlags} -bs-cross-module-opt -make-runtime -nopervasives -unsafe -w +50 -warn-error A -curried
866+
bsc_primitive_flags = ${commonBsFlags} -bs-cross-module-opt -make-runtime -nopervasives -unsafe -w +50 -warn-error A -uncurried
867867
bsc_flags = $bsc_primitive_flags -open Belt_internals
868868
${ruleCC(ninjaCwd)}
869869
${ninjaQuickBuildList([
@@ -966,13 +966,13 @@ async function stdlibNinja(devmode = true) {
966966
* @type [string,string][]
967967
*/
968968
var bsc_builtin_overrides = [
969-
[bsc_flags, `$${bsc_flags} -nopervasives -curried`],
969+
[bsc_flags, `$${bsc_flags} -nopervasives -uncurried`],
970970
];
971971
// It is interesting `-w -a` would generate not great code sometimes
972972
// deprecations diabled due to string_of_float
973973
var warnings = "-w -9-3-106 -warn-error A";
974974
var templateStdlibRules = `
975-
${bsc_flags} = ${commonBsFlags} -bs-cross-module-opt -make-runtime ${warnings} -I others -curried
975+
${bsc_flags} = ${commonBsFlags} -bs-cross-module-opt -make-runtime ${warnings} -I others -uncurried
976976
${ruleCC(ninjaCwd)}
977977
${ninjaQuickBuildList([
978978
// we make it still depends on external
@@ -1104,7 +1104,7 @@ async function testNinja() {
11041104
var ninjaOutput = "build.ninja";
11051105
var ninjaCwd = `test`;
11061106
var templateTestRules = `
1107-
bsc_flags = -bs-cross-module-opt -make-runtime-test -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others -curried
1107+
bsc_flags = -bs-cross-module-opt -make-runtime-test -bs-package-output commonjs:jscomp/test -w -3-6-26-27-29-30-32..40-44-45-52-60-9-106+104 -warn-error A -I runtime -I $stdlib -I others -uncurried
11081108
${ruleCC(ninjaCwd)}
11091109
`;
11101110
var testDirFiles = fs.readdirSync(testDir, "ascii");

0 commit comments

Comments
 (0)