Changes between Initial Version and Version 1 of Ticket #58493, comment 8


Ignore:
Timestamp:
May 19, 2019, 7:51:28 PM (5 years ago)
Author:
cjones051073 (Chris Jones)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58493, comment 8

    initial v1  
    1 Currently the logic in the cctools port that picks the clang version to use with `as` is tied to the llvm version used to build the port, via the variant. This is a reasonable enough way to do it, but technically is not required. Instead of hardcoding into the as binary the MP clang version matching the llvm variant, we *could* pass in a list of all possible reasonable versions, starting with the most recent and working back. i.e. the list of all possible llvm variant versions. `as` would then start at the beginning of this list and use which either it first finds.... This would allow the port to still be built using the llvm 3.x version, but still when as is used at runtime pick a more recent clang version.
     1Currently the logic in the `cctools` port that picks the clang version to use with `as` is tied to the llvm version used to build the port, via the variant. This is a reasonable enough way to do it, but technically is not required. Instead of hardcoding into the as binary the MP clang version matching the llvm variant, we *could* pass in a list of all possible reasonable versions, starting with the most recent and working back. i.e. the list of all possible llvm variant versions. `as` would then start at the beginning of this list and use which either it first finds.... This would allow the port to still be built using the llvm 3.x version, but still when `as` is used at runtime pick a more recent clang version.
    22
    33Note that this would actually allow the somewhat convoluted logic the gcc ports now need to make sure the correct clang version cctools needs is installed to be removed, and instead just declare a dependency on a recent clang version, say 8.0, safe in the knowledge it will be used as the assembler if needed.