JS codegen enhancements; still unusable
This commit is contained in:
parent
ee1bcb6414
commit
fe285b354d
9 changed files with 223 additions and 59 deletions
|
|
@ -131,7 +131,9 @@ when has_LLVM_Backend:
|
|||
proc CommandCompileToEcmaScript =
|
||||
incl(gGlobalOptions, optSafeCode)
|
||||
setTarget(osEcmaScript, cpuEcmaScript)
|
||||
initDefines()
|
||||
#initDefines()
|
||||
DefineSymbol("nimrod") # 'nimrod' is always defined
|
||||
DefineSymbol("ecmascript")
|
||||
semanticPasses()
|
||||
registerPass(ecmasgenPass())
|
||||
compileProject()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue