aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2016-11-17 09:02:01 -0800
committerCQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>2016-11-17 20:49:27 +0000
commitd7b9002aa5910810671323cc504484d7f06c7e92 (patch)
treeb130cd6ca29827c2f141dc1b5f33606b38cfa0f2 /util
parent5f04b6bc3a46662323b67be31bc9a28be38b2844 (diff)
downloadboringssl-d7b9002aa5910810671323cc504484d7f06c7e92.zip
boringssl-d7b9002aa5910810671323cc504484d7f06c7e92.tar.gz
boringssl-d7b9002aa5910810671323cc504484d7f06c7e92.tar.bz2
Define BORINGSSL_SHARED_LIBRARY when building tests with Bazel.
Bazel builds tests as shared libraries and the new p256-x86_64_test depends on accessing unexported symbols. Thus we need to define BORINGSSL_SHARED_LIBRARY when building tests. Change-Id: I1270c69ac9d1bcf6baa05ef6666078bd368d80cf Reviewed-on: https://boringssl-review.googlesource.com/12360 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/generate_build_files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/generate_build_files.py b/util/generate_build_files.py
index 0b84bfd..aae158d 100644
--- a/util/generate_build_files.py
+++ b/util/generate_build_files.py
@@ -266,7 +266,7 @@ class Bazel(object):
out.write(' "%s",\n' % arg)
out.write(' ],\n')
- out.write(' copts = copts,\n')
+ out.write(' copts = copts + ["-DBORINGSSL_SHARED_LIBRARY"],\n')
if len(data_files) > 0:
out.write(' data = [\n')