diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-19 13:26:26 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-19 13:28:07 -0800 |
commit | 4a8e3a838d3c52887c99af3e46cf20e08b142d3b (patch) | |
tree | 8434933e9e7c6e37dbb53699ab62cc32c0880eca | |
parent | 7140f758bb6332c33aa414d674f9e19fe320a570 (diff) |
disable compiler fallback attempts to load relooper and struct info from local dir
-rw-r--r-- | src/compiler.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/compiler.js b/src/compiler.js index aa3c7b92..452b1f7b 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -206,12 +206,12 @@ if (phase == 'pre') { if (VERBOSE) printErr('VERBOSE is on, this generates a lot of output and can slow down compilation'); // Load struct and define information. -try { +//try { var temp = JSON.parse(read(STRUCT_INFO)); -} catch(e) { - printErr('cannot load struct info at ' + STRUCT_INFO + ' : ' + e + ', trying in current dir'); - temp = JSON.parse(read('struct_info.compiled.json')); -} +//} catch(e) { +// printErr('cannot load struct info at ' + STRUCT_INFO + ' : ' + e + ', trying in current dir'); +// temp = JSON.parse(read('struct_info.compiled.json')); +//} C_STRUCTS = temp.structs; C_DEFINES = temp.defines; @@ -224,12 +224,12 @@ load('analyzer.js'); load('jsifier.js'); if (phase == 'funcs' && RELOOP) { // XXX handle !singlePhase RelooperModule = { TOTAL_MEMORY: ceilPowerOfTwo(2*RELOOPER_BUFFER_SIZE) }; - try { + //try { load(RELOOPER); - } catch(e) { - printErr('cannot load relooper at ' + RELOOPER + ' : ' + e + ', trying in current dir'); - load('relooper.js'); - } + //} catch(e) { + // printErr('cannot load relooper at ' + RELOOPER + ' : ' + e + ', trying in current dir'); + // load('relooper.js'); + //} assert(typeof Relooper != 'undefined'); } globalEval(processMacros(preprocess(read('runtime.js')))); |