Comments (2)
This isn't a bazel issue, nor even a bug. Static initialization order is not defined. You need explicit initialization if you care about order. That's not our choice, that's how C++ works.
from rules_android_ndk.
Reading through to the LLVM bug you linked, I guess LLVM has some sort of attribute to hack around that? idk how that's implemented so it may not be portable. If you want your code to be portable, don't rely on static initialization order.
In any case, that fix isn't needed in bazel, you just need a new enough NDK.
from rules_android_ndk.
Related Issues (20)
- Set up CLA bot HOT 1
- Set up presubmit tests HOT 8
- Cross compilation issues HOT 9
- Support cc toolchain resolution HOT 1
- Error when using unsupported NDK directory HOT 1
- Run app in an emulator in presubmit tests
- Does this project support bazel 5.2.0? HOT 19
- Remove "ndk/"-prefixed include path compatibility workarounds HOT 2
- Missing "default_crosstool" or "toolchain-libcpp" causing some Google dependencies fail to build for Android.
- How to correctly link to liblog? HOT 3
- Cross compilation issues with FFMPEG with Android HOT 4
- NDK 26 support HOT 10
- Building cc_binary with rules unable to find cc_toolchain_suite
- Adding downloading of NDK inside Bazel HOT 5
- Feature/Flag Feedback HOT 7
- ERROR: --nouse_workers_with_dexbuilder :: Unrecognized option: --nouse_workers_with_dexbuilder with Bazel@HEAD HOT 1
- NDK headers HOT 5
- Is Android NDK r25c support? HOT 3
- Proposal: use a path relative to `ANDROID_HOME` like in Android Gradle Plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_android_ndk.