| ... | ... | @@ -63,6 +63,7 @@ option(ZIG_TEST_COVERAGE "Build Zig with test coverage instrumentation" OFF) |
| 63 | 63 | option(ZIG_FORCE_EXTERNAL_LLD "does nothing" OFF) |
| 64 | 64 | |
| 65 | 65 | set(ZIG_TARGET_TRIPLE "native" CACHE STRING "arch-os-abi to output binaries for") |
| 66 | set(ZIG_TARGET_MCPU "baseline" CACHE STRING "-mcpu parameter to output binaries for") |
| 66 | 67 | set(ZIG_EXECUTABLE "" CACHE STRING "(when cross compiling) path to already-built zig binary") |
| 67 | 68 | |
| 68 | 69 | find_package(llvm) |
| ... | ... | @@ -433,7 +434,7 @@ endif() |
| 433 | 434 | set(BUILD_LIBSTAGE2_ARGS "build-lib" |
| 434 | 435 | "src-self-hosted/stage2.zig" |
| 435 | 436 | -target "${ZIG_TARGET_TRIPLE}" |
| 436 | | -mcpu=baseline |
| 437 | "-mcpu=${ZIG_TARGET_MCPU}" |
| 437 | 438 | --name zigstage2 |
| 438 | 439 | --override-lib-dir "${CMAKE_SOURCE_DIR}/lib" |
| 439 | 440 | --cache on |