summaryrefslogtreecommitdiff
path: root/shared/paths.go
AgeCommit message (Collapse)Author
2024-10-21Remove bp2build and appurtenances. Joe Onorato
Bug: 374816306 Test: treehugger Change-Id: Ic26f6d6e0772fb07e43d22873519c5afb2ee9a45
2024-06-25Cleanup more bazel code Cole Faust
Bug: 315353489 Test: m nothing --no-skip-soong-tests Change-Id: I6c6b4fcd559f4a45b1a96c70cbb5d6d1a615ccff
2021-03-03cd to / before running soong_build . Lukacs T. Berki
This lets one avoid any decisions as to when to chdir there during its execution and leads to better sandboxing because the pwd doesn't leak to init() functions anymore. Test: Manual. Change-Id: I1560da8ed3a621249426f9e8908aa890c21e13ba
2020-12-14Enable bazel profiling in soong_build. Patrice Arruda
Bazel is executed several times during the execution of soong_build. For each bazel execution, generate a profile and save under the BAZEL_METRICS_DIR which is defined in soong_ui. Bug: b/174479924 Test: * USE_BAZEL_ANALYSIS=1 USE_BAZEL=1 m nothing and checked if the cquery and graph build bazel profiles were generated. * Verified that the generated bazel profiles were uploaded to the local dev metrics pipeline. Change-Id: I3d20204484dc6c5a1525a5d3eec1d62cfb33535b
2020-12-08Provide an interface for shared paths between Soong and Soong UI. Patrice Arruda
Code refactoring has been done for logs directory logic code since the bazel metrics directory depends on the log directory. For builds that did not specify a dist directory, the log directory is under out directory. With dist, the logs directory is under <dist dir>/logs. This matters for Android CI builds where the metrics files are placed under logs directory. With this change, the bazel metrics directory and corresponding files will be under <dist dir>/logs directory for Android CI builds. Bug: b/174479728 Test: * USE_BAZEL=1 m nothing (bazel_metrics dir in out dir) * m nothing (bazel_metrics dir deleted) * DIST_DIR=/tmp/build USE_BAZEL=1 m nothing dist (bazel_metrics is in /tmp/build/logs directory) Change-Id: Ic9e1ff49a1964fcaaf801bde2c19f33597ca1db4
2020-11-13Add bazel profile related functions in paths.go Patrice Arruda
Bazel executions occurs in soong_ui and soong_cmd. To collection all bazel metrics, several path functions are defined to return the path to store a bazel profile gzipped file. Bug: b/173028918 Test: m nothing Change-Id: I78926c66f853233b3977aca22e8a3fcf28edda53
2017-06-09Have Soong try to enforce that genrules declare all their outputs. Jeff Gaston
This causes Soong to put the outputs of each genrule into a temporary location and copy the declared outputs back to the output directory. This gets the process closer to having an actual sandbox. Bug: 35562758 Test: make Change-Id: I8048fbf1a3899a86fb99d71b60669b6633b07b3e