c_tool: reorder CC arguments since the semantic between gcc and clang difers
authorJean Privat <jean@pryen.org>
Mon, 10 Aug 2015 16:08:48 +0000 (12:08 -0400)
committerJean Privat <jean@pryen.org>
Mon, 10 Aug 2015 16:08:48 +0000 (12:08 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/c_tools.nit

index 5df891e..9a03c5a 100644 (file)
@@ -148,7 +148,7 @@ class ExternCFile
                if not pkgconfigs.is_empty then
                        pkg = "`pkg-config --cflags {pkgconfigs.join(" ")}`"
                end
-               return "$(CC) $(CFLAGS) -Wno-unused-function -Wall {self.cflags} {pkg} -c -o {o} {ff}"
+               return "$(CC) $(CFLAGS) -Wall -Wno-unused-function {self.cflags} {pkg} -c -o {o} {ff}"
        end
 
        redef fun compiles_to_o_file do return true