aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/pcre.BUILD
diff options
context:
space:
mode:
authorGravatar Changming Sun <chasun@microsoft.com>2017-10-22 21:36:25 +0800
committerGravatar Changming Sun <chasun@microsoft.com>2017-10-23 21:14:26 +0800
commitf300bcbb3419e7ad7130a84d5375ae53d92e1568 (patch)
treead6eff27513e76e1c8fb11a1c20863413854279b /third_party/pcre.BUILD
parent40c475b48c091a70ad8061c1508dff6ded2d2af6 (diff)
Propagate -DPCRE_STATIC from pcre.BUILD to swig.BUILD
To fix a build error on Windows: ERROR: C:/os/t/external/swig/BUILD.bazel:5:1: Linking of rule '@swig//:swig' failed (Exit 1120): link.exe failed: error executing command misc.o : error LNK2019: unresolved external symbol __imp_pcre_compile referenced in function Swig_string_regex ...
Diffstat (limited to 'third_party/pcre.BUILD')
-rw-r--r--third_party/pcre.BUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/pcre.BUILD b/third_party/pcre.BUILD
index 68aadd1d40..e2cdec4029 100644
--- a/third_party/pcre.BUILD
+++ b/third_party/pcre.BUILD
@@ -50,12 +50,12 @@ cc_library(
"-DNEWLINE=10",
"-DNO_RECURSE",
"-DPARENS_NEST_LIMIT=50",
- "-DPCRE_STATIC=1",
"-DPOSIX_MALLOC_THRESHOLD=10",
"-DSTDC_HEADERS=1",
"-DSUPPORT_UCP",
"-DSUPPORT_UTF",
],
+ defines = ["PCRE_STATIC=1"],
includes = ["."],
visibility = ["@swig//:__pkg__"], # Please use RE2
alwayslink = 1,