Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Makes the ar command used deterministic.
Browse files Browse the repository at this point in the history
The D flag makes ar deterministic (i.e. for the same files as inputs,
it will always produce identical outputs.

Having deterministic .a files takes us much closer to
having a fully deterministic build.

171 previously time varying .a files are now deterministic.

BUG=454642

Review URL: https://codereview.chromium.org/1595073005

Cr-Commit-Position: refs/heads/master@{#370283}
  • Loading branch information
ZacharyForman authored and Commit bot committed Jan 20, 2016
1 parent 7eccd97 commit 52619d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/toolchain/gcc_toolchain.gni
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ template("gcc_toolchain") {
# POSIX-like toolchains such as NaCl on Windows).
ar_wrapper =
rebase_path("//build/toolchain/gcc_ar_wrapper.py", root_build_dir)
command = "$python_path \"$ar_wrapper\" --output={{output}} --ar=\"$ar\" $arflags rcs @\"$rspfile\""
command = "$python_path \"$ar_wrapper\" --output={{output}} --ar=\"$ar\" $arflags rcsD @\"$rspfile\""
description = "AR {{output}}"
rspfile_content = "{{inputs}}"
outputs = [
Expand Down

0 comments on commit 52619d6

Please sign in to comment.