aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
AgeCommit message (Collapse)Author
2020-02-24remove usages of `@typeId`, `@memberCount`, `@memberName` and `@memberType`Vexu
2020-02-21fix regression in standardTargetOptionsAndrew Kelley
2020-02-21fix zig build adding invalid cli argsAndrew Kelley
2020-02-20fix zig build, ABI ABI, and update tests to new Target layoutAndrew Kelley
2020-02-19make the CLI support depending on system headers and librariesAndrew Kelley
(include and lib search paths) The detection of native system paths is self-hosted. closes #2041
2020-02-18improvements which allow zig to emit multiple things at onceAndrew Kelley
example: zig build-obj test.zig -femit-llvm-ir -femit-asm this will generate all three: test.o test.s test.ll
2020-02-18Rename produce_* bools to emit_* to match CLINoam Preil
2020-02-18Improve support for generating LLVM IR/asm filesNoam Preil
2020-02-07Fixing library search pathpwzk
2020-02-06build: fix handling disabling .h file generationAndrew Kelley
2020-02-03Add InstallRawStep to Zig build system that does a similar job to ↵Michaël Larouche
llvm-objcopy. To use it, do 'exe.installRaw("kernel.bin");' where exe is a LibExeObjStep Part of #2826
2020-02-02Add support for dependent packages when using build.zigfrmdstryr
2020-01-30build: Fix missing `dupe`meme
- Strange memory corruption issues occur when allocated memory is passed to the builder and it is `defer`'d and freed - Instead, `dupe` the string as is done in other handlers, this fixes the issue
2020-01-30Merge pull request #4324 from fengb/testing-allocatorAndrew Kelley
Remove debug.global_allocator in favor of testing.allocator
2020-01-29Convert a bunch of page_allocator to testing.allocatorBenjamin Feng
2020-01-29Add support for code model selectionValentin Anger
2020-01-28fix build.zig logic for -target-cpu and -target-featureAndrew Kelley
fix a false negative for detecting the ability to emit these flags. it matters for stage0/stage1 on aarch64
2020-01-25Merge remote-tracking branch 'origin/master' into layneson-cpus_and_featuresAndrew Kelley
2020-01-22std.Target.CpuFeatures is now a struct with both CPU and feature setAndrew Kelley
Previously it was a tagged union which was one of: * baseline * a specific CPU * a set of features Now, it's possible to have a CPU but also modify the CPU's feature set on top of that. This is closer to what LLVM does. This is more correct because Zig's notion of CPUs (and LLVM's) is not exact CPU models. For example "skylake" is not one very specific model; there are several different pieces of hardware that match "skylake" that have different feature sets enabled.
2020-01-21hit a comptime limitation with computing dense setsAndrew Kelley
2020-01-21fixups to arch data, support any number of cpu featuresAndrew Kelley
2020-01-20Fix ICE in build addAssemblyFileLemonBoy
2020-01-19progress towards mergingAndrew Kelley
see BRANCH_TODO file
2020-01-19Add builtin.zig supportLayne Gustafson
2020-01-19Add TargetDetails abstractionLayne Gustafson
2020-01-19Add build.zig cpu and feature optionsLayne Gustafson
2020-01-07cleanups related to --eh-frame-hdrAndrew Kelley
2020-01-07add --eh-frame-hdr conditionallyDavid Cao
2020-01-07build support list optionsmogud
2020-01-07added -- to pass args to zig build commandsemekoi
2020-01-07test harness: show annotated case name when translate-c test failsAndrew Kelley
2020-01-05fix test-gen-h and test-compile-errors regressionAndrew Kelley
2020-01-05rework and improve some of the zig build stepsAndrew Kelley
* `RunStep` moved to lib/std/build/run.zig and gains ability to compare output and exit code against expected values. Multiple redundant locations in the test harness code are replaced to use `RunStep`. * `WriteFileStep` moved to lib/std/build/write_file.zig and gains ability to write more than one file into the cache directory, for when the files need to be relative to each other. This makes usage of `WriteFileStep` no longer problematic when parallelizing zig build. * Added `CheckFileStep`, which can be used to validate that the output of another step produced a valid file. Multiple redundant locations in the test harness code are replaced to use `CheckFileStep`. * Added `TranslateCStep`. This exposes `zig translate-c` to the build system, which is likely to be rarely useful by most Zig users; however Zig's own test suite uses it both for translate-c tests and for run-translated-c tests. * Refactored ad-hoc code to handle source files coming from multiple kinds of sources, into `std.build.FileSource`. * Added `std.build.Builder.addExecutableFromWriteFileStep`. * Added `std.build.Builder.addExecutableSource`. * Added `std.build.Builder.addWriteFiles`. * Added `std.build.Builder.addTranslateC`. * Added `std.build.LibExeObjStep.addCSourceFileSource`. * Added `std.build.LibExeObjStep.addAssemblyFileFromWriteFileStep`. * Added `std.build.LibExeObjStep.addAssemblyFileSource`. * Exposed `std.fs.base64_encoder`.
2019-12-31generate header in separate foldermogud
2019-12-16Revert "added -- to pass args to zig build commands"Andrew Kelley
This reverts commit d4e56ae6ae15ed1b062b0d775893abb5579fc66d. This broke the build
2019-12-16added -- to pass args to zig build commandsemekoi
2019-12-16expose the ability to disable C sanitizationAndrew Kelley
and disable C sanitization when building libcs. Empirically, they seem to trigger undef-sanitization.
2019-12-10print call in build.zig needs to use a tuple argumentdbandstra
2019-12-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-12-01Merge remote-tracking branch 'origin/master' into remove-array-type-coercionAndrew Kelley
2019-11-30move `std.fs.Dir.cwd` to `std.fs.cwd`Andrew Kelley
update to non-deprecated std.fs APIs throughout the codebase Related: #3811
2019-11-27Windows: fix test/standalone/shared_libraryMichael Dusan
- on Windows use first found env var { "Path", "PATH" } Bug Description: `build test` results in the following error on in a msys64 shell with "PATH" env var instead of "Path": error while loading shared libraries: mathtest.dll: cannot open shared object file: No such file or directory
2019-11-27remove type coercion from array values to referencesAndrew Kelley
* Implements #3768. This is a sweeping breaking change that requires many (trivial) edits to Zig source code. Array values no longer coerced to slices; however one may use `&` to obtain a reference to an array value, which may then be coerced to a slice. * Adds `IrInstruction::dump`, for debugging purposes. It's useful to call to inspect the instruction when debugging Zig IR. * Fixes bugs with result location semantics. See the new behavior test cases, and compile error test cases. * Fixes bugs with `@typeInfo` not properly resolving const values. * Behavior tests are passing but std lib tests are not yet. There is more work to do before merging this branch.
2019-11-26Fix build system crash when compiling windows dllsyscall0
2019-11-25Merge branch 'wasi-run-tests' of https://github.com/fengb/zig into ↵Andrew Kelley
fengb-wasi-run-tests
2019-11-25rename std.heap.direct_allocator to std.heap.page_allocatorAndrew Kelley
std.heap.direct_allocator is still available for now but it is marked deprecated.
2019-11-20Add .enable_wasmtime build flagBenjamin Feng
2019-11-12Merge pull request #3447 from Sahnvour/vcpkgSahnvour
build: initial support for using vcpkg libraries
2019-11-10std.ChildProcess.spawn has a consistent error setAndrew Kelley
across targets. Also fix detection of pkg-config not installed on Windows when using zig build.
2019-11-09build: initial support for using vcpkg librariesSahnvour