nitg: Added PNaCl support for Nit
[nit.git] / src / nitg.nit
index 4228a62..7feafb2 100644 (file)
@@ -26,6 +26,7 @@ import separate_erasure_compiler
 import separate_compiler
 import android_platform
 import compiler_ffi
+import pnacl_platform
 
 # Create a tool context to handle options and paths
 var toolcontext = new ToolContext
@@ -72,8 +73,7 @@ end
 
 var platform = mainmodule.target_platform
 if platform != null and not platform.supports_libunwind then
-       toolcontext.opt_no_stacktrace.value = true
-       toolcontext.opt_stacktrace.value = false
+       if toolcontext.opt_stacktrace.value == null then toolcontext.opt_stacktrace.value = "none" # default is none
 end
 
 if toolcontext.opt_erasure.value then