--- - branch: MAIN date: Wed Oct 18 08:48:51 UTC 2023 files: - new: '1.42' old: '1.41' path: pkgsrc/mk/compiler/clang.mk pathrev: pkgsrc/mk/compiler/clang.mk@1.42 type: modified id: 20231018T084851Z.ec736f554912cf3b7a3d3d0255cc0edc5e0f98ea log: | mk/compiler: Improve clang CC_VERSION setting. Use -dumpversion, supported in all modern versions, rather than digging out the version with sed. Allow CC_VERSION to be preset by the user, and set the obsolete CC_VERSION_STRING variable to be the same as CC_VERSION rather than setting it to the verbose version output. Default to "clang-0" rather than just "clang" if CCPATH is not available so that matching elsewhere can be more uniform. With CC_VERSION preset this improves speed of 'make pbulk-index' in simple packages by around 30%, and reduces system time by 50%. module: pkgsrc subject: 'CVS commit: pkgsrc/mk/compiler' unixtime: '1697618931' user: jperkin