Skip to content

Commit

Permalink
copts are passed correctly when building w/o gflags
Browse files Browse the repository at this point in the history
resolves google#338
  • Loading branch information
razrotenberg authored and drigz committed Jul 9, 2018
1 parent 8242fcb commit 93ad91c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel/glog.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def glog_library(namespace='google', with_gflags=1):

# Include generated header files.
'-I%s/glog_internal' % gendir,
] + [
] + ([
# Use gflags to parse CLI arguments.
'-DHAVE_LIB_GFLAGS',
] if with_gflags else [],
] if with_gflags else []),
deps = [
'@com_github_gflags_gflags//:gflags',
] if with_gflags else [],
Expand Down

0 comments on commit 93ad91c

Please sign in to comment.