Skip to content

Commit

Permalink
[wimal] Fix libc++ namespace issue for ndk
Browse files Browse the repository at this point in the history
  • Loading branch information
disigma committed Jun 16, 2024
1 parent 18531a7 commit 2279ff0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wimal/cc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ void Cc::Run(const Context *context, std::vector<std::string> extraArgs) {
case Context::MACHINE_X86_ANDROID:
case Context::MACHINE_X64_ANDROID:
args.emplace_back("-Wl,--build-id=sha1");
// Fix libc++ namespace issue for ndk.
args.emplace_back("-D_LIBCPP_ABI_NAMESPACE=__ndk1");
break;
default: {
break;
Expand Down

0 comments on commit 2279ff0

Please sign in to comment.