stage2: Add -include libc-symbols.h when building crtn.S

This -include is added for nearly every file in glibc's makefiles.
This commit is contained in:
LemonBoy 2020-12-14 18:51:02 +01:00 committed by Andrew Kelley
parent 96e3222796
commit 5f7352b5b5

View File

@ -287,6 +287,8 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void {
try args.appendSlice(&[_][]const u8{
"-D_LIBC_REENTRANT",
"-DMODULE_NAME=libc",
"-include",
try lib_path(comp, arena, lib_libc_glibc ++ "include" ++ path.sep_str ++ "libc-symbols.h"),
"-DTOP_NAMESPACE=glibc",
"-DASSEMBLER",
"-g",