aboutsummaryrefslogtreecommitdiff
path: root/lib/init-exe
AgeCommit message (Collapse)Author
2023-11-20merge `zig init-exe` and `zig init-lib` into `zig init`Andrew Kelley
Instead of `zig init-lib` and `zig init-exe`, now there is only `zig init`, which initializes any of the template files that do not already exist, and makes a package that contains both an executable and a static library. The idea is that the user can delete whatever they don't want. In fact, I think even more things should be added to the build.zig template.
2023-05-03std.Build: use Step.* instead of *StepVeikka Tuominen
Follow up to 13eb7251d37759bd47403db304c6120c706fe353
2023-04-10init-exe/init-lib template: fix use of install() and run()Andrew Kelley
And while we're at it, make the unit tests be actually executed.
2023-01-31fix init-exe, init-lib templatesAndrew Kelley
2023-01-31combine std.build and std.build.Builder into std.BuildAndrew Kelley
I've been wanting to do this for along time.
2023-01-31update build.zig API usageAndrew Kelley
2022-08-04init-exe template: add flushing to the buffered writerLoris Cro
2022-08-04init-exe template: small improvementsLoris Cro
2022-08-04new init-exe templateLoris Cro
- removed an unnecessary (and confusing) `anyerror` fronm the function signature of `main` - replaced the call to std.log with two prints: one to stderr and one to stdout - replaced the test code with a better example
2022-05-14init-exe: add note about log_level in ReleaseSmall and ReleaseFast build ↵Robin
mode (#11626) As suggested in https://github.com/ziglang/zig/issues/9945#issuecomment-950114977 by @wizzard0. Fixes #9945.
2022-05-06flatten lib/std/special and improve "pkg inside another" logicAndrew Kelley
stage2: change logic for detecting whether the main package is inside the std package. Previously it relied on realpath() which is not portable. This uses resolve() which is how imports already work. * stage2: fix cleanup bug when creating Module * flatten lib/std/special/* to lib/* - this was motivated by making main_pkg_is_inside_std false for compiler_rt & friends. * rename "mini libc" to "universal libc"