Skip to content

Some external_deps tidying - #2035

Merged
illwieckz merged 3 commits into
masterfrom
illwieckz/deps-2
Nov 18, 2026
Merged

illwieckz merged 3 commits into
masterfrom
illwieckz/deps-2

Conversation

@illwieckz

Copy link
Copy Markdown
Member
  • external_deps: rework the cmake toolchain configuration
    Just unifying the wording for consistency
  • external_deps: rework the macos configuration
    Prepare for macos-arm64 which will share some code but have a different baseline version
  • external_deps: set MinGW flags as flags
    Move some compiler flags from CC to CFLAGS, remove the need to extract the compiler out of CC

@slipher slipher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • external_deps: rework the cmake toolchain configuration: LGTM
  • external_deps: rework the macos configuration: looks bad, because MACOSX_DEPLOYMENT_TARGET is not only for CMake. The system C/C++ toolchain consumes it directly.
    More information: with the toolchain I currently have installed, the minimum possible version you can get out is 11.0 (it's OK to request lower ones which are rounded up). The default is 26.0.
  • external_deps: set MinGW flags as flags: LGTM modulo comment.

Comment thread external_deps/build.sh Resolved
@illwieckz

Copy link
Copy Markdown
Member Author
  • external_deps: rework the macos configuration: looks bad, because MACOSX_DEPLOYMENT_TARGET is not only for CMake. The system C/C++ toolchain consumes it directly.
    More information: with the toolchain I currently have installed, the minimum possible version you can get out is 11.0 (it's OK to request lower ones which are rounded up). The default is 26.0.

Well, I expected the explicit flags to be enough, but I re-added this environment variable just in case.

@slipher

slipher commented Nov 17, 2026

Copy link
Copy Markdown
Member
  • external_deps: rework the macos configuration: looks bad, because MACOSX_DEPLOYMENT_TARGET is not only for CMake. The system C/C++ toolchain consumes it directly.
    More information: with the toolchain I currently have installed, the minimum possible version you can get out is 11.0 (it's OK to request lower ones which are rounded up). The default is 26.0.

Well, I expected the explicit flags to be enough, but I re-added this environment variable just in case.

Oh, if those -mmacosx-version-min flags were there last time I think I missed them. So LGTM even without the environment variable.

@illwieckz

Copy link
Copy Markdown
Member Author

Oh, if those -mmacosx-version-min flags were there last time I think I missed them. So LGTM even without the environment variable.

Yes those flags were there in the PR from the beginning. And there script was tested. I removed the env var then.

It should be noted that the env var could have worked if a dependency had some .m or .mm files, but none of our deps have some but SDL3, and we don't build SDL3 for macOS. If we had to deal with them, the env var would have been incomplete because it would not set the arch. So if the need arises, it will be better to set OBJCFLAGS and OBJCXXFLAGS.

@illwieckz
illwieckz merged commit a452320 into master Nov 18, 2026
3 checks passed
@illwieckz
illwieckz deleted the illwieckz/deps-2 branch November 18, 2026 12:17
@slipher

slipher commented Nov 18, 2026

Copy link
Copy Markdown
Member

It should be noted that the env var could have worked if a dependency had some .m or .mm files, but none of our deps have some but SDL3, and we don't build SDL3 for macOS. If we had to deal with them, the env var would have been incomplete because it would not set the arch. So if the need arises, it will be better to set OBJCFLAGS and OBJCXXFLAGS.

I think it's set by the linker not the compiler, so it probably doesn't matter...

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.

2 participants