Skip to content

Commit 6d13d7d

Browse files
committed
more forgiving when Makefile not found
1 parent ac6abc2 commit 6d13d7d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

jscomp/common/js_config.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let diagnose = ref false
6161
let get_diagnose () = !diagnose
6262
let set_diagnose b = diagnose := b
6363

64-
let (//) = Filename.concat
64+
let (//) = Filname.concat
6565

6666
(* let get_packages_info () = !packages_info *)
6767

scripts/install.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,13 @@ function non_windows_npm_release() {
155155
child_process.execSync(make + " libs && " + make + " install", root_dir_config)
156156
} else {
157157
tryToProvideOCamlCompiler()
158-
if(process.env.BS_TRAVIS_CI){
158+
if(process.env.BS_TRAVIS_CI === "1"){
159159
console.log('Enforcing snapshot in CI mode')
160-
child_process.execSync("make -C jscomp force-snapshotml", root_dir_config)
160+
if(fs.existsSync(path.join(root_dir,'jscomp','Makefile'))){
161+
child_process.execSync("make -C jscomp force-snapshotml", root_dir_config)
162+
} else {
163+
console.log("jscomp/Makefile is missing")
164+
}
161165
}
162166
child_process.execSync(make + " world && " + make + " install", root_dir_config)
163167
}

0 commit comments

Comments
 (0)