From 367518f65049da0e53123d98eb24e56674a5c57e Mon Sep 17 00:00:00 2001 From: levosos Date: Wed, 4 Jul 2018 19:26:55 +0300 Subject: [PATCH] copts are passed correctly when building w/o gflags resolves #338 --- bazel/glog.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazel/glog.bzl b/bazel/glog.bzl index 4632754..5334fd8 100644 --- a/bazel/glog.bzl +++ b/bazel/glog.bzl @@ -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 [],