Skip to content

Commit dca3403

Browse files
authored
Merge pull request #4848 from rescript-lang/fix_windows_file_error
fix "The process cannot access the file because it is being used by another process" on windows
2 parents a576521 + 57b3578 commit dca3403

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

jscomp/bsb/bsb_ninja_gen.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
108108
let bs = ".."//"bs" in
109109
let sb = ".."//".." in
110110
o (if Ext_sys.is_windows_or_cygwin then
111-
"rule cp\n command = cmd.exe /C copy /Y $i $out > null\n"
111+
"rule cp\n command = cmd.exe /C copy /Y $i $out >NUL\n"
112112
else
113113
"rule cp\n command = cp $i $out\n"
114114
);

jscomp/bsb/bsb_ninja_rule.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ let make_custom_rules
242242
define
243243
~command:(
244244
if Ext_sys.is_windows_or_cygwin then
245-
"cmd.exe /C copy /Y $i $out > null"
245+
"cmd.exe /C copy /Y $i $out >NUL"
246246
else "cp $i $out"
247247
)
248248
"copy_resource" in

lib/4.06.1/bsb.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12998,7 +12998,7 @@ let make_custom_rules
1299812998
define
1299912999
~command:(
1300013000
if Ext_sys.is_windows_or_cygwin then
13001-
"cmd.exe /C copy /Y $i $out > null"
13001+
"cmd.exe /C copy /Y $i $out >NUL"
1300213002
else "cp $i $out"
1300313003
)
1300413004
"copy_resource" in
@@ -13616,7 +13616,7 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
1361613616
let bs = ".."//"bs" in
1361713617
let sb = ".."//".." in
1361813618
o (if Ext_sys.is_windows_or_cygwin then
13619-
"rule cp\n command = cmd.exe /C copy /Y $i $out > null\n"
13619+
"rule cp\n command = cmd.exe /C copy /Y $i $out >NUL\n"
1362013620
else
1362113621
"rule cp\n command = cp $i $out\n"
1362213622
);

0 commit comments

Comments
 (0)