summaryrefslogtreecommitdiff
path: root/tools/cpp-define-generator/make_header.py
Commit message (Collapse)AuthorAgeFilesLines
* Update ART generator tools to use python3.Vladimir Marko2021-04-131-1/+1
| | | | | | 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
* Make the $/# in front of constants optionalPirama Arumuga Nainar2019-08-091-1/+1
| | | | | | | | | | | | 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
* Cleanup the cpp-define-generator definitions.David Srbecky2018-10-121-1/+0
| | | | | Test: test-art-host-gtest-arch_test Change-Id: Ifda7a51d19156b1eb62bc39b16ec559d609744e5
* Rewrite cpp-define-generatorDavid Srbecky2018-10-121-0/+57
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