Merge branch 'ni' into wip
[nit.git] / src / compiling / compiling_base.nit
index c470042..4fdcec0 100644 (file)
@@ -93,6 +93,10 @@ class CProgram
                        verbose = "-vv"
                end
 
+               # include compdir to find frontier files (._nitni.h) from native
+               # implementations as .nit.h must have an import of <{name}._nitni.h>
+               include_dirs.add( "-I {compdir}" )
+
                f.write("#!/bin/sh\n")
                f.write("# This shell script is generated by NIT to compile the program {program.main_module.full_name}.\n")
                f.write("CLIBDIR=\"{tc.clibdir.as(not null)}\"\n")