summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2017-02-02 14:33:39 -0800
committerIgor Murashkin <iam@google.com>2017-02-02 16:18:27 -0800
commit2449a154c457eaa2c6a30e11184bb7381903cfd5 (patch)
treee6f66104451b46f4fe0dce618a11b861a382f08a /PREUPLOAD.cfg
parent27374ae7b59094e115ff23139c54ac97088eb01f (diff)
downloadart-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.cfg2
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