ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Warning: overriding deployment version on macOS 26

Open jacob-carlborg opened this issue 4 months ago • 1 comments

Compiling with LDC 1.41.0 on macOS 26 (just released as of this writing) results in the following warning from Clang:

$ cat main.d
import std;

void main()
{
    writeln("asd");
}
$ ~/Downloads/ldc2-1.41.0-osx-arm64/bin/ldc2 main.d -v
binary    /Users/jacobcarlborg/Downloads/ldc2-1.41.0-osx-arm64/bin/ldc2
version   1.41.0 (DMD v2.111.0, LLVM 20.1.5)
config    /Users/jacobcarlborg/Downloads/ldc2-1.41.0-osx-arm64/etc/ldc2.conf (arm64-apple-darwin25.0.0)
/usr/bin/cc main.o -o main -L/Users/jacobcarlborg/Downloads/ldc2-1.41.0-osx-arm64/bin/../lib -lphobos2-ldc -ldruntime-ldc -Wl,-dead_strip -lpthread -lm -lobjc -target arm64-apple-macos16
clang: warning: overriding deployment version from '16' to '26.0' [-Woverriding-deployment-version]

Not sure why LDC needs to pass a target flag to Clang for a native build. Or where it gets the OS version. This is the version as reported by the OS:

$ sw_vers                                                                                                                                                                                                                                                                                             
ProductName:		macOS
ProductVersion:		26.0
BuildVersion:		25A353
$ cat /System/Library/CoreServices/SystemVersion.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildID</key>
	<string>EEA4B7C4-8BB8-11F0-85FA-257090F12EA9</string>
	<key>ProductBuildVersion</key>
	<string>25A353</string>
	<key>ProductCopyright</key>
	<string>1983-2025 Apple Inc.</string>
	<key>ProductName</key>
	<string>macOS</string>
	<key>ProductUserVisibleVersion</key>
	<string>26.0</string>
	<key>ProductVersion</key>
	<string>26.0</string>
	<key>iOSSupportVersion</key>
	<string>26.0</string>
</dict>
</plist>

jacob-carlborg avatar Sep 16 '25 09:09 jacob-carlborg

Not sure why LDC needs to pass a target flag to Clang for a native build. Or where it gets the OS version

https://github.com/ldc-developers/ldc/pull/4534. I'm not going to waste my time with Apple anymore.

kinke avatar Sep 16 '25 12:09 kinke