This repository was archived by the owner on Jan 26, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ $(V8FILES):
20
20
ninja -C deps/v8/out.gn/x64.release v8_monolith
21
21
22
22
out/config.json : configure
23
- $(error Missing or stale $@ , please run ./configure)
23
+ @if [ -x out/config.status ]; then \
24
+ ./out/config.status; \
25
+ else \
26
+ echo Missing or stale $@ , please run ./$< ; \
27
+ exit 1; \
28
+ fi
24
29
25
30
clean :
26
31
rm -rf out
Original file line number Diff line number Diff line change 5
5
/* eslint-env node */
6
6
/* eslint-disable prefer-destructuring */
7
7
8
- const { readFileSync, writeFileSync } = require ( 'fs' ) ;
8
+ const { readFileSync, writeFileSync, chmodSync } = require ( 'fs' ) ;
9
9
10
10
function snekparse ( args ) {
11
11
if ( typeof args === 'string' ) {
@@ -82,14 +82,21 @@ function snekparse(args) {
82
82
return argv ;
83
83
}
84
84
85
- const argv = snekparse ( process . argv ) ;
85
+ const pargv = process . argv . slice ( 2 ) ;
86
+ const argv = snekparse ( pargv ) ;
86
87
87
88
const config = {
88
89
exposeBinding : argv [ 'expose-binding' ] || false ,
89
90
allowNativesSyntax : argv [ 'allow-natives-syntax' ] || false ,
90
91
exposePrivateSymbols : argv [ 'expose-private-symbols' ] || false ,
91
92
} ;
92
93
94
+ writeFileSync ( './out/config.status' , `#!/bin/sh
95
+ set -ex
96
+ ./configure ${ pargv . map ( ( a ) => `'${ a . replace ( / ' / g, "'\\''" ) } '` ) . join ( ' ' ) }
97
+ ` ) ;
98
+ chmodSync ( './out/config.status' , '775' ) ;
99
+
93
100
const current = ( ( ) => {
94
101
try {
95
102
return readFileSync ( './out/config.json' , 'utf8' ) ;
You can’t perform that action at this time.
0 commit comments