Changes between Initial Version and Version 1 of Ticket #62440, comment 10
- Timestamp:
- Jun 26, 2021, 9:43:08 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62440, comment 10
initial v1 4 4 > * we should never pass any SDK to `CFLAGS`, `LDFLAGS`, ... (apparently the base does exactly that) 5 5 6 For anything to do with clang or Xcode, we are supposed to set SDKROOT andleave the isysroot stuff out of the flags.6 For anything to do with clang or Xcode, I believe we are supposed to set SDKROOT and try to leave the isysroot stuff out of the flags. 7 7 8 8 It might be that there are considered to be too many fringe cases to allow this, like maybe nasm and such. I don't know if all those fringe compilers respect SDKROOT. … … 10 10 > * or that we should not bake those values into build scripts 11 11 12 We can all see that we have undergone no end of significant troubles bybaking an SDK path into various installed scripts, and later the SDK path changes.12 We do see troubles when baking an SDK path into various installed scripts, and later the SDK path changes. 13 13 14 But we have talked about this for literally years now, and it seems that we can't stop doing it. Or maybe the software can't stop doing it, and we can't find a way to stop the software from doing it, not sure which.14 It seems to me that there is often no advantage to burning in these paths, and we might do best to leave them out. 15 15 16 Then either our set SDKROOT in the environment would dominate, or as a final backup, xcrun would find an SDK (the most current one). 17