]> git.ozlabs.org Git - ccan/blobdiff - tools/depends.c
ccanlint: fix --compiler and --cflags options to apply to _info files as well.
[ccan] / tools / depends.c
index 4f56d14e1eeb97edf71f5b07b2e7050ec3c940a1..399b0aadf5affee6b8b814d2facc118a40150bf0 100644 (file)
@@ -62,8 +62,7 @@ char *compile_info(const void *ctx, const char *dir)
 
        compiled = temp_file(ctx, "", "info");
        if (compile_and_link(ctx, info_c_file, find_ccan_dir(dir), "",
-                            CCAN_COMPILER, CCAN_CFLAGS " -I.", "",
-                            compiled, &output))
+                            compiler, cflags, "", compiled, &output))
                return compiled;
        return NULL;
 }