nitc: refactor MModule cflags and ldflags to support different target platforms
[nit.git] / src / ffi / c.nit
index ebd2277..8da8ffe 100644 (file)
@@ -72,8 +72,14 @@ redef class Location
 end
 
 redef class MModule
-       var cflags = "" is writable
-       var ldflags = "" is writable
+       # FIXME make nullable the key of `cflags`, `ldflags` and `cppflags` when
+       # supported by the bootstrap
+
+       # Custom options for the C compiler (CFLAGS)
+       var cflags = new MultiHashMap[String, String]
+
+       # Custom options for the C linker (LDFLAGS)
+       var ldflags = new MultiHashMap[String, String]
 
        # Additional libraries needed for the compilation
        # Will be used with pkg-config