diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-22 08:31:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-11-22 08:31:42 +0200 |
commit | f14b5ed02105ac5a936434224cedd6c31164c90c (patch) | |
tree | beb9908a90166bc6952f12d73471bee7f7b9264d | |
parent | c8d9235115f5c0c3b20bdb0cf59b05761cb3d3de (diff) |
Fix incorrect _LIBCPP_VERSION macro name in comments
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 2 | ||||
-rw-r--r-- | libbuild2/cc/guess.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index 5d6c029..ce611d2 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -7761,7 +7761,7 @@ namespace build2 // In Apple Clang this warning/option are absent in 14.0.3 (which // is said to be based on vanilla Clang 15.0.5) for some reason // (let's hope it's because they patched it out rather than due to - // a misleading __LIBCPP_VERSION value). + // a misleading _LIBCPP_VERSION value). // if (ctype == compiler_type::clang && cmaj >= (cvariant != "apple" ? 15 : 16)) diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx index 066d790..b38db38 100644 --- a/libbuild2/cc/guess.cxx +++ b/libbuild2/cc/guess.cxx @@ -2526,12 +2526,12 @@ namespace build2 // https://gist.github.com/yamaya/2924292 // // Specifically, we now look in the libc++'s __config file for the - // __LIBCPP_VERSION and use the previous version as a conservative - // estimate (NOTE that there could be multiple __config files with + // _LIBCPP_VERSION and use the previous version as a conservative + // estimate (NOTE: that there could be multiple __config files with // potentially different versions so compile with -v to see which one // gets picked up). // - // Also, lately, we started seeing __LIBCPP_VERSION values like 15.0.6 + // Also, lately, we started seeing _LIBCPP_VERSION values like 15.0.6 // or 16.0.2 which would suggest the base is 15.0.5 or 16.0.1. But // that assumption did not check out with the actual usage. For // example, vanilla Clang 16 should no longer require -fmodules-ts but @@ -2562,9 +2562,9 @@ namespace build2 // 12.0.5 -> 10.0 (yes, seriously!) // 13.0.0 -> 11.0 // 13.1.6 -> 12.0 - // 14.0.0 -> 12.0 (__LIBCPP_VERSION=130000) - // 14.0.3 -> 15.0 (__LIBCPP_VERSION=150006) - // 15.0.0 -> 16.0 (__LIBCPP_VERSION=160002) + // 14.0.0 -> 12.0 (_LIBCPP_VERSION=130000) + // 14.0.3 -> 15.0 (_LIBCPP_VERSION=150006) + // 15.0.0 -> 16.0 (_LIBCPP_VERSION=160002) // uint64_t mj (var_ver->major); uint64_t mi (var_ver->minor); |