import syntax
import native_interface
import separate_options
+import ffi
# The main class of the nitcompiler program
class NitCompiler
boost = opt_boost.value
no_cc = opt_no_cc.value
cc_link = not opt_cc_no_link.value
- cc_lib_paths = opt_cc_lib_paths.value
- cc_libs = opt_cc_libs.value
- cc_include_paths = opt_cc_include_paths.value
+ cc_lib_paths.add_all( opt_cc_lib_paths.value )
+ cc_libs.add_all( opt_cc_libs.value )
+ cc_include_paths.add_all( opt_cc_include_paths.value )
var ext = opt_extension_prefix.value
if ext != null then ext_prefix = ext else ext_prefix = ""
compdir = opt_compdir.value
if compdir == null then
- var dir = once ("NIT_COMPDIR".to_symbol).environ
+ var dir = "NIT_COMPDIR".environ
if not dir.is_empty then
compdir = dir
end
clibdir = opt_clibdir.value
if clibdir == null then
- var dir = once ("NIT_DIR".to_symbol).environ
+ var dir = "NIT_DIR".environ
if dir.is_empty then
dir = "{sys.program_name.dirname}/../clib"
if dir.file_exists then clibdir = dir
bindir = opt_bindir.value
if bindir == null then
- var dir = once ("NIT_DIR".to_symbol).environ
+ var dir = "NIT_DIR".environ
if dir.is_empty then
dir = "{sys.program_name.dirname}/../bin"
if dir.file_exists then bindir = dir