Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions configs/projects/_shared-compiler-settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

# Platform specific overrides or settings, which may override the defaults

# Newer Xcode (16+) defaults clang to -std=gnu23 and C23 changes semantics in ways that
# can turn previously valid C into undefined behavior, which can cause segfaults.
proj.setting(:cflags, "#{proj.cflags} -std=gnu17") if platform.is_macos?

# Harden Linux ELF binaries by compiling with PIE (Position Independent Executables) support,
# stack canary and full RELRO.
# We only do this on platforms that use their default OS toolchain since pl-gcc versions
Expand Down
Loading