summaryrefslogtreecommitdiff
path: root/tools/cpp-define-generator/make_header.py
AgeCommit message (Collapse)Author
2021-04-13Update ART generator tools to use python3.Vladimir Marko
Test: buildbot-build.sh --target Test: m cpp-define-generator-test && out/host/linux-x86/testcases/cpp-define-generator-test/cpp-define-generator-test Change-Id: I73018df1e531c37d21397c2ffa35238e3df76d65
2019-08-09Make the $/# in front of constants optionalPirama Arumuga Nainar
Bug: http://b/117842681 Bug: https://github.com/android-ndk/ndk/issues/1036 After change https://reviews.llvm.org/D65550, Clang stopped emitting '#' before constants in inline assembly. To accommodate this change, mark the $/# before constants as optional in make_header.py Test: Build with old and new compilers Change-Id: Idb056c99a2bfc4d14e4e30d7dc1d0740ca4f9b60
2018-10-12Cleanup the cpp-define-generator definitions.David Srbecky
Test: test-art-host-gtest-arch_test Change-Id: Ifda7a51d19156b1eb62bc39b16ec559d609744e5
2018-10-12Rewrite cpp-define-generatorDavid Srbecky
The new method works by generating temporary per-architecture human-readable object file with the constants embedded in it. Python script extracts those values and generates the header. This means the values can now implicitly depend on pointer size, compile time flags, or ABI specific object layout with no hacks. Test: test-art-host-gtest-arch_test Change-Id: Id6e8c77c01f9d6c49cd6d40e3487b56fa4777349