aboutsummaryrefslogtreecommitdiff
path: root/src/libc_installation.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-25 11:37:54 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-25 11:45:00 -0500
commite76ce2c1d0d3988359267fd3030a81a52ec99f3f (patch)
tree04e2c5c67961d5d54ba9d31b2e1601837b84a9df /src/libc_installation.cpp
parente5d4862e145c38ffc1111ee578ddcafc1e35ad57 (diff)
downloadzig-e76ce2c1d0d3988359267fd3030a81a52ec99f3f.tar.gz
zig-e76ce2c1d0d3988359267fd3030a81a52ec99f3f.zip
first class support for compiling C code
New CLI parameter: --c-source [options] [file] It even works with `--cache on` when there are transitive dependencies. Instead of `builder.addCExecutable`, use `builder.addExecutable` and pass `null` for the root source file. Then use `builder.addCSourceFile`, which takes the path to the C code, and a list of C compiler args. Be sure to linkSystemLibrary("c") if you want libc headers to be available. Merge TestStep into LibExeObjStep. That was long overdue.
Diffstat (limited to 'src/libc_installation.cpp')
0 files changed, 0 insertions, 0 deletions