Skip to content

On macOS, compile C with clang. #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2024
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
11 changes: 11 additions & 0 deletions build/gnat/sdlada.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ library project SDLAda is
Common_Switches := Common_Switches & ("-O2");
end case;

-- All GCC releases up to & including 13.2 give errors when
-- using SDK 15, because Apple have used a new macro
-- unsupported by GCC.
case Platform is
when "macos_homebrew" | "macos_ports" =>
for Driver ("C") use "clang";

when others =>
null;
end case;

-- These flags require checking on all platforms as they're taken directly from sdl2-config.
case Platform is
when "linux" | "bsd" | "android" | "windows" =>
Expand Down
Loading