From 0527b441ae0e90e0b97052594cabb78129a02782 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Jul 2022 21:55:45 -0700 Subject: [PATCH] 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 --- CMakeLists.txt | 1 - {src/link/C => lib/include}/zig.h | 0 src/link/C.zig | 2 +- 3 files changed, 1 insertion(+), 2 deletions(-) rename {src/link/C => lib/include}/zig.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index cf93a38a58..ffbf12dbc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" diff --git a/src/link/C/zig.h b/lib/include/zig.h similarity index 100% rename from src/link/C/zig.h rename to lib/include/zig.h diff --git a/src/link/C.zig b/src/link/C.zig index 4159a577d2..c56327ad63 100644 --- a/src/link/C.zig +++ b/src/link/C.zig @@ -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 \n"; base: link.File, /// This linker backend does not try to incrementally link output C source code.