FFI: ExternFile::filename should be relative to the nit-compile dir
[nit.git] / src / compiler / compiler_ffi / light.nit
index 1f59771..4adbf05 100644 (file)
@@ -53,7 +53,7 @@ extern void nitni_global_ref_decr(void*);
                nitni_ccu.write_as_nitni(self, v.compiler.toolchain.compile_dir)
 
                for file in nitni_ccu.files do
-                       var f = new ExternCFile(file, cflags)
+                       var f = new ExternCFile(file.basename, cflags)
                        f.pkgconfigs.add_all pkgconfigs
                        v.compiler.extern_bodies.add(f)
                end