]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/examples_compile.c
ccanlint: read config.h to get compilation flags at runtime.
[ccan] / tools / ccanlint / tests / examples_compile.c
index 578805fe0c62a23db549a6e54e6fb0018980a15a..67412df34e184301cd3894e78080ab546cb8c480 100644 (file)
@@ -121,7 +121,8 @@ static bool compile(const void *ctx,
        file->compiled = maybe_temp_file(ctx, "", keep, file->fullname);
        if (!compile_and_link(ctx, file->fullname, ccan_dir,
                              obj_list(m, file),
-                             "", lib_list(m), file->compiled, output)) {
+                             compiler, cflags,
+                             lib_list(m), file->compiled, output)) {
                /* Don't keep failures. */
                if (keep)
                        unlink(file->compiled);