niti, nitg & rta: use lookup_first_definition
[nit.git] / src / nitc.nit
index 09b297f..803f637 100644 (file)
@@ -52,14 +52,14 @@ 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
@@ -72,7 +72,7 @@ class NitCompiler
 
                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
@@ -88,7 +88,7 @@ class NitCompiler
 
                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