Make TRACE_BEGIN_SOONG great again.
Bug: 262724077 Test: m nothing Test: Verify with echo/printf that the values are the same Change-Id: Ie18f726c59ae269bd4f935842c90b3285bd8a156
This commit is contained in:
@@ -34,9 +34,15 @@ SKIPPED_PRODUCTS=(
|
|||||||
aosp_riscv64
|
aosp_riscv64
|
||||||
)
|
)
|
||||||
|
|
||||||
# To track how long we took to startup. %N isn't supported on Darwin, but
|
# To track how long we took to startup.
|
||||||
# that's detected in the Go code, which skips calculating the startup time.
|
case $(uname -s) in
|
||||||
export TRACE_BEGIN_SOONG=$(date +%s%N)
|
Darwin)
|
||||||
|
export TRACE_BEGIN_SOONG=`$T/prebuilts/build-tools/path/darwin-x86/date +%s%3N`
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
export TRACE_BEGIN_SOONG=$(date +%s%N)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Remove BUILD_NUMBER so that incremental builds on build servers don't
|
# Remove BUILD_NUMBER so that incremental builds on build servers don't
|
||||||
# re-read makefiles every time.
|
# re-read makefiles every time.
|
||||||
|
@@ -14,9 +14,15 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# To track how long we took to startup. %N isn't supported on Darwin, but
|
# To track how long we took to startup.
|
||||||
# that's detected in the Go code, which skips calculating the startup time.
|
case $(uname -s) in
|
||||||
export TRACE_BEGIN_SOONG=$(date +%s%N)
|
Darwin)
|
||||||
|
export TRACE_BEGIN_SOONG=`$T/prebuilts/build-tools/path/darwin-x86/date +%s%3N`
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
export TRACE_BEGIN_SOONG=$(date +%s%N)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../make/shell_utils.sh
|
source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../make/shell_utils.sh
|
||||||
require_top
|
require_top
|
||||||
|
Reference in New Issue
Block a user