authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2026-05-02 01:03:56+01:00
committergravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2026-05-02 01:28:22+01:00
log89b0c634c129aa048b7677c555ea1302a5d15d46
tree09f5004c0dc89564e783352f4ed951bb5349097b
parent845b6a8efe5ac71c9df02373fe3716814cb7b92d

compiler: Enable PIE by default for serenity

See: - https://github.com/SerenityOS/serenity/blob/727c4a3d1a6748221b383207dac354e564b6150d/Meta/CMake/serenity_compile_options.cmake#L15 - https://github.com/llvm/llvm-project/blob/62418bee5b9679c5b3bd536fb1101913b1c4e4d5/clang/lib/Driver/ToolChains/Serenity.h#L65

1 files changed, 1 insertions(+), 1 deletions(-)

src/target.zig+1-1
...@@ -85,7 +85,7 @@ pub fn supports_fpic(target: *const std.Target) bool {...@@ -85,7 +85,7 @@ pub fn supports_fpic(target: *const std.Target) bool {
8585
86pub fn defaultPie(target: *const std.Target) bool {86pub fn defaultPie(target: *const std.Target) bool {
87 return switch (target.os.tag) {87 return switch (target.os.tag) {
88 .openbsd => true,88 .openbsd, .serenity => true,
89 else => target.os.tag.isDarwin(),89 else => target.os.tag.isDarwin(),
90 };90 };
91}91}