| author | |
| committer | |
| log | ed419555229a6d93eb7b08950620f86641f44d92 |
| tree | 52d3131b1efcdf31bf9bcdd90e6ad1382beecb35 |
| parent | e4a86d4653c5854437371e2b63006bd4a1b4c83d |
| signature | Commit is signed but in an unrecognized format. |
Previously libuserland was being built for the native target,
which could depend on native CPU features such as AVX. The
CI infrastructure is intending to create binaries that are
widely compatible and do not make use of specific CPU features.
There could be something to gain from enabling native CPU features
sometimes, by introducing a new cmake configuration option, but
since it's planned to eventually ship self-hosted rather than stage1,
I don't think it really matters.
closes #23482 files changed, 2 insertions(+), 0 deletions(-)
CMakeLists.txt+1| ... | ... | @@ -6701,6 +6701,7 @@ add_custom_command( |
| 6701 | 6701 | DEPENDS |
| 6702 | 6702 | "${CMAKE_SOURCE_DIR}/src-self-hosted/stage1.zig" |
| 6703 | 6703 | "${CMAKE_SOURCE_DIR}/src-self-hosted/translate_c.zig" |
| 6704 | "${CMAKE_SOURCE_DIR}/build.zig" | |
| 6704 | 6705 | ) |
| 6705 | 6706 | add_custom_target(userland_target DEPENDS "${LIBUSERLAND}") |
| 6706 | 6707 | add_executable(zig "${ZIG_MAIN_SRC}") |
build.zig+1| ... | ... | @@ -389,6 +389,7 @@ fn addLibUserlandStep(b: *Builder) void { |
| 389 | 389 | else |
| 390 | 390 | b.addStaticLibrary("userland", "src-self-hosted/stage1.zig"); |
| 391 | 391 | artifact.disable_gen_h = true; |
| 392 | artifact.setTarget(builtin.arch, builtin.os, builtin.abi); | |
| 392 | 393 | artifact.linkSystemLibrary("c"); |
| 393 | 394 | const libuserland_step = b.step("libuserland", "Build the userland compiler library for use in stage1"); |
| 394 | 395 | libuserland_step.dependOn(&artifact.step); |