This repository was archived by the owner on Jan 26, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ $(V8FILES):
2020 ninja -C deps/v8/out.gn/x64.release v8_monolith
2121
2222out/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
2429
2530clean :
2631 rm -rf out
Original file line number Diff line number Diff line change 55/* eslint-env node */
66/* eslint-disable prefer-destructuring */
77
8- const { readFileSync, writeFileSync } = require ( 'fs' ) ;
8+ const { readFileSync, writeFileSync, chmodSync } = require ( 'fs' ) ;
99
1010function snekparse ( args ) {
1111 if ( typeof args === 'string' ) {
@@ -82,14 +82,21 @@ function snekparse(args) {
8282 return argv ;
8383}
8484
85- const argv = snekparse ( process . argv ) ;
85+ const pargv = process . argv . slice ( 2 ) ;
86+ const argv = snekparse ( pargv ) ;
8687
8788const config = {
8889 exposeBinding : argv [ 'expose-binding' ] || false ,
8990 allowNativesSyntax : argv [ 'allow-natives-syntax' ] || false ,
9091 exposePrivateSymbols : argv [ 'expose-private-symbols' ] || false ,
9192} ;
9293
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+
93100const current = ( ( ) => {
94101 try {
95102 return readFileSync ( './out/config.json' , 'utf8' ) ;
You can’t perform that action at this time.
0 commit comments