-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
make the CLI support depending on system headers and libraries (include and lib search paths) #2041
Copy link
Copy link
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
On my system,
@cImport(@cInclude("stdio.h"))works, but@cImport(@cInclude("gmp.h"))doesn't.gmp.his in/usr/include/x86_64-linux-gnu, andstdio.his in/usr/include. I'm running a simple test file withzig test filename.zig --library gmp --library c:This worked in
0.3.0+9c5852aa, but is broken in0.3.0+0a8a7a57. On this system, zig is cloned to~/sourcestuff/zigand built there, thenbinandlibare copied to~/zig/(~/zig/binis in$PATH).