Skip to content

Commit

Permalink
[gn build] Set _LIBCPP_ABI_NAMESPACE to __$libcxx_abi_version
Browse files Browse the repository at this point in the history
Matches CMake build.
Otherwise currently everything is literally std::_LIBCPP_ABI_NAMESPACE::foo.
  • Loading branch information
aeubanks committed Oct 12, 2022
1 parent 2c09016 commit eca6352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/libcxx/include/BUILD.gn
Expand Up @@ -47,7 +47,7 @@ if (current_toolchain == default_toolchain) {
if (libcxx_abi_namespace != "") {
values += [ "_LIBCPP_ABI_NAMESPACE=$libcxx_abi_namespace" ]
} else {
values += [ "_LIBCPP_ABI_NAMESPACE=" ]
values += [ "_LIBCPP_ABI_NAMESPACE=__" + libcxx_abi_version ]
}
}

Expand Down

0 comments on commit eca6352

Please sign in to comment.