about summary refs log tree commit diff
path: root/pkgs/test/cross
AgeCommit message (Collapse)AuthorFilesLines
2020-05-16pkg-config-wrapper: InitJohn Ericson1-0/+14
This fixes longstanding build issues
2020-05-16cross/tests: Use `crossPkgs.runCommand` so we have `strictDeps`John Ericson1-1/+1
2019-04-23wasm: init cross targetMatthew Bauer1-5/+4
Adds pkgsCross.wasm32 and pkgsCross.wasm64. Use it to build Nixpkgs with a WebAssembly toolchain. stdenv/cross: use static overlay on isWasm isWasm doesn’t make sense dynamically linked.
2019-02-26cross/tests: add llvm-based testsMatthew Bauer1-21/+25
2019-02-26llvm: support cross compilation with useLLVM flagMatthew Bauer1-0/+6
You can build (partially) with LLVM toolchain using the useLLVM flag. This works like so: nix-build -A hello --arg crossSystem '{ system = "aarch64-unknown-linux-musl"; useLLVM = true }' also don’t separate debug info in lldClang It doesn’t work currently with that setup hook. Missing build-id?
2018-11-29treewide: add emulator to platformMatthew Bauer1-26/+36
You can use stdenv.hostPlatform.emulator to get an executable that runs cross-built binaries. This could be any emulator. For instance, we use QEMU to emulate Linux targets and Wine to emulate Windows targets. To work with qemu, we need to support custom targets. I’ve reworked the cross tests in pkgs/test/cross to use this functionality. Also, I’ve used talloc to cross-execute with the emulator. There appears to be a cross-execute for all waf builds. In the future, it would be nice to set this for all waf builds. Adds stdenv.hostPlatform.qemuArch attrbute to get the qemuArch for each platform.
2018-07-21tests: add some cross testsMatthew Bauer1-0/+80