__FreeBSD__ is compiler built-in define that holds FBSD_MAJOR
On gcc FBSD_MAJOR comes from triple, e.g
riscv64-unknown-freebsd12.0-
The idea is to eliminate version from triple, so in result we will have this:
riscv64-unknown-freebsd-
Differential D11962
Use __FreeBSD_version insted of __FreeBSD__ br on Aug 10 2017, 6:30 PM. Authored by
Details
Diff Detail
Event Timeline
Comment Actions I have a related change for Clang in https://github.com/emaste/freebsd/commit/b03c6b060658f5fed4a2ad8511095c5f4df6e9f4 to avoid rebuilding so much when __FreeBSD_version gets bumped. Comment Actions Do we really want to change the code in src/contrib and src/crypto? This will make MFV more difficult due to possible merge conflicts. Let's not touch contributed (src/contrib, src/crypto) code. Also, I can make the ipfilter changes. Looks like I missed a few when simplifying #ifdefs.
Comment Actions Just to reiterate, we should not touch any contrib (contrib, crypto) code as it will complicate MFV. |