diff options
author | Changming Sun <chasun@microsoft.com> | 2017-10-22 21:36:25 +0800 |
---|---|---|
committer | Changming Sun <chasun@microsoft.com> | 2017-10-23 21:14:26 +0800 |
commit | f300bcbb3419e7ad7130a84d5375ae53d92e1568 (patch) | |
tree | ad6eff27513e76e1c8fb11a1c20863413854279b /third_party | |
parent | 40c475b48c091a70ad8061c1508dff6ded2d2af6 (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')
-rw-r--r-- | third_party/pcre.BUILD | 2 |
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, |