Changes between Initial Version and Version 1 of Ticket #62440, comment 10


Ignore:
Timestamp:
Jun 26, 2021, 9:43:08 PM (3 years ago)
Author:
kencu (Ken)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62440, comment 10

    initial v1  
    44> * we should never pass any SDK to `CFLAGS`, `LDFLAGS`, ... (apparently the base does exactly that)
    55
    6 For anything to do with clang or Xcode, we are supposed to set SDKROOT and leave the isysroot stuff out of the flags.
     6For 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.
    77
    88It 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.
     
    1010> * or that we should not bake those values into build scripts
    1111
    12 We can all see that we have undergone no end of significant troubles by baking an SDK path into various installed scripts, and later the SDK path changes.
     12We do see troubles when baking an SDK path into various installed scripts, and later the SDK path changes.
    1313
    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.
     14It seems to me that there is often no advantage to burning in these paths, and we might do best to leave them out.
    1515
     16Then either our set SDKROOT in the environment would dominate, or as a final backup, xcrun would find an SDK (the most current one).
     17