diff options
author | Igor Murashkin <iam@google.com> | 2017-02-02 14:33:39 -0800 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2017-02-02 16:18:27 -0800 |
commit | 2449a154c457eaa2c6a30e11184bb7381903cfd5 (patch) | |
tree | e6f66104451b46f4fe0dce618a11b861a382f08a /PREUPLOAD.cfg | |
parent | 27374ae7b59094e115ff23139c54ac97088eb01f (diff) | |
download | art-2449a154c457eaa2c6a30e11184bb7381903cfd5.tar.gz |
build: Generate asm_support_gen.h from the build, validate up-to-date
When building libart/libartd, also generate asm_support_gen.h
automatically. In addition, verify that our checked-in version
(runtime/generated/asm_support_gen.h) is up-to-date with what the build
generates.
Furthermore, add a presubmit hook that runs with 'repo upload'
that validates that the up-to-date version of asm_support_gen.h
is being uploaded to gerrit.
This makes it significantly more difficult to accidentally
merge a CL that doesn't have the auto-generated headers updated
and break the build as a result.
Bug: 34387670
Test: make libart libartd
Test: cd art && tools/repohooks/pre-upload.py
Change-Id: I1f0f94914d328c396906583d0732e281c076e69f
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r-- | PREUPLOAD.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 0000000000..cf1832beb4 --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,2 @@ +[Hook Scripts] +check_generated_files_up_to_date = tools/cpp-define-generator/presubmit-check-files-up-to-date |