Skip to content

Conversation

es1024
Copy link
Contributor

@es1024 es1024 commented Feb 21, 2025

This change adds support for building thirdparty with llvm-installer clang on OS X targets.

The following changes were needed:

  • -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX##.#.sdk added to preprocessor flags, to locate system headers
  • def use_cppflags_env_var(): return True on several dependencies built with autotools, since the -isystem flag is needed for configure tests, and those tests often build with only CPPFLAGS, so we need the -isystem flag in CPPFLAGS and not CFLAGS/CXXFLAGS
  • libunistring/gettext were moved to the COMMON group. These are only used for OS X thirdparty, and can be built earlier/without libc++ support (pure C libraries).
  • Various is_linux() checks changed to is_llvm_installer_clang() checks
  • Fixed bid build not using CFLAGS set by our build scripts for float128

@es1024 es1024 force-pushed the clang-mac branch 24 times, most recently from a3e6d4a to c466c47 Compare February 21, 2025 17:45
@es1024 es1024 changed the title [WIP] Build OS X + clang 19 [WIP] Add llvm-installer clang builds on OS X targets Feb 21, 2025
@es1024 es1024 force-pushed the clang-mac branch 3 times, most recently from f69d2c6 to 40dd0e1 Compare June 24, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant