move zig.h to become an installation file

Now instead of zig.h being baked into the compiler binary, it is a
header file distributed along with all the other header files
distributed with Zig.

Closes #11643
This commit is contained in:
Andrew Kelley 2022-07-26 21:55:45 -07:00
parent c6f5832bb6
commit 0527b441ae
3 changed files with 1 additions and 2 deletions

View File

@ -749,7 +749,6 @@ set(ZIG_STAGE2_SOURCES
"${CMAKE_SOURCE_DIR}/src/libunwind.zig"
"${CMAKE_SOURCE_DIR}/src/link.zig"
"${CMAKE_SOURCE_DIR}/src/link/C.zig"
"${CMAKE_SOURCE_DIR}/src/link/C/zig.h"
"${CMAKE_SOURCE_DIR}/src/link/Coff.zig"
"${CMAKE_SOURCE_DIR}/src/link/Elf.zig"
"${CMAKE_SOURCE_DIR}/src/link/MachO.zig"

View File

@ -15,7 +15,7 @@ const Air = @import("../Air.zig");
const Liveness = @import("../Liveness.zig");
pub const base_tag: link.File.Tag = .c;
pub const zig_h = @embedFile("C/zig.h");
pub const zig_h = "#include <zig.h>\n";
base: link.File,
/// This linker backend does not try to incrementally link output C source code.