Commit 20c69733 by Geoff Lang Committed by Geoff Lang

Fix GN warning about unused variable when angle_enable_commit_id=false

BUG=angleproject:2344 Change-Id: I3a0c8384d280755557fd425e80877addd756a9ef Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2091625Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 3797fc85
...@@ -466,9 +466,8 @@ action("commit_id") { ...@@ -466,9 +466,8 @@ action("commit_id") {
outputs = [ commit_id_output_file ] outputs = [ commit_id_output_file ]
# Add git as a dependency if it is available. # Add git as a dependency if it is available.
angle_git_is_present = if (angle_enable_commit_id &&
exec_script("src/commit_id.py", [ "check" ], "value") == 1 exec_script("src/commit_id.py", [ "check" ], "value") == 1) {
if (angle_enable_commit_id && angle_git_is_present) {
# commit id should depend on angle's HEAD revision # commit id should depend on angle's HEAD revision
inputs = [ ".git/HEAD" ] inputs = [ ".git/HEAD" ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment