Skip to content

Commit d361a8a

Browse files
committed
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
1 parent e2d4709 commit d361a8a

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,6 @@ set(ZIG_STAGE2_SOURCES
749749
"${CMAKE_SOURCE_DIR}/src/libunwind.zig"
750750
"${CMAKE_SOURCE_DIR}/src/link.zig"
751751
"${CMAKE_SOURCE_DIR}/src/link/C.zig"
752-
"${CMAKE_SOURCE_DIR}/src/link/C/zig.h"
753752
"${CMAKE_SOURCE_DIR}/src/link/Coff.zig"
754753
"${CMAKE_SOURCE_DIR}/src/link/Elf.zig"
755754
"${CMAKE_SOURCE_DIR}/src/link/MachO.zig"
File renamed without changes.

src/link/C.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Air = @import("../Air.zig");
1515
const Liveness = @import("../Liveness.zig");
1616

1717
pub const base_tag: link.File.Tag = .c;
18-
pub const zig_h = @embedFile("C/zig.h");
18+
pub const zig_h = "#include <zig.h>\n";
1919

2020
base: link.File,
2121
/// This linker backend does not try to incrementally link output C source code.

0 commit comments

Comments
 (0)