mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 17:35:12 +00:00
Merge pull request #11448 from ziglang/ci-stage3
CI: additionally test building stage3
This commit is contained in:
commit
804d0661f5
@ -48,7 +48,10 @@ cd $WORKSPACE
|
||||
$ZIG fmt --check . --exclude test/compile_errors/
|
||||
|
||||
# Build stage2 standalone so that we can test stage2 against stage2 compiler-rt.
|
||||
$ZIG build -p stage2 -Denable-llvm -Duse-zig-libcxx
|
||||
$ZIG build -p stage2 -Dstatic-llvm -Dtarget=native-native-musl --search-prefix "$DEPS_LOCAL"
|
||||
|
||||
# Ensure that stage2 can build itself.
|
||||
./stage2/bin/zig build -p stage3 -Dstatic-llvm -Dtarget=native-native-musl --search-prefix "$DEPS_LOCAL"
|
||||
|
||||
stage2/bin/zig test test/behavior.zig -I test -fLLVM
|
||||
stage2/bin/zig test test/behavior.zig -I test -fno-LLVM
|
||||
@ -95,8 +98,7 @@ tidy --drop-empty-elements no -qe zig-cache/langref.html
|
||||
$ZIG build \
|
||||
--prefix "$RELEASE_STAGING" \
|
||||
--search-prefix "$DEPS_LOCAL" \
|
||||
-Denable-llvm \
|
||||
-Duse-zig-libcxx \
|
||||
-Dstatic-llvm \
|
||||
-Drelease \
|
||||
-Dstrip \
|
||||
-Dtarget="$TARGET" \
|
||||
|
||||
@ -1224,6 +1224,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
|
||||
|
||||
// This is shared hasher state common to zig source and all C source files.
|
||||
cache.hash.addBytes(build_options.version);
|
||||
cache.hash.add(builtin.zig_backend);
|
||||
cache.hash.addBytes(options.zig_lib_directory.path orelse ".");
|
||||
cache.hash.add(options.optimize_mode);
|
||||
cache.hash.add(options.target.cpu.arch);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user