Bug 1316545 part 2 - Enable LLVM_EXPORT_SYMBOLS_FOR_PLUGINS for linking clang plugin on windows. r=ehsan
authorTing-Yu Chou <janus926@gmail.com>
Wed, 16 Nov 2016 14:00:06 +0800
changeset 325122 dbda600d4a149f60343e7ee875ab4577d660ca81
parent 325121 6efe44b0c70dbb2c027c9996fc3e43daf83e02ea
child 325123 5cbc0be626a0f3f55f5b243d6b3a6d2d97287e83
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersehsan
bugs1316545
milestone53.0a1
Bug 1316545 part 2 - Enable LLVM_EXPORT_SYMBOLS_FOR_PLUGINS for linking clang plugin on windows. r=ehsan MozReview-Commit-ID: 5p5oFAlQyri
build/build-clang/build-clang.py
--- a/build/build-clang/build-clang.py
+++ b/build/build-clang/build-clang.py
@@ -200,16 +200,18 @@ def build_one_stage(cc, cxx, src_dir, st
                   "-DCMAKE_BUILD_TYPE=%s" % build_type,
                   "-DLLVM_TARGETS_TO_BUILD=X86;ARM",
                   "-DLLVM_ENABLE_ASSERTIONS=%s" % ("ON" if assertions else "OFF"),
                   "-DPYTHON_EXECUTABLE=%s" % slashify_path(python_path),
                   "-DCMAKE_INSTALL_PREFIX=%s" % inst_dir,
                   "-DLLVM_TOOL_LIBCXX_BUILD=%s" % ("ON" if build_libcxx else "OFF"),
                   "-DLIBCXX_LIBCPPABI_VERSION=\"\"",
                   src_dir];
+    if is_windows():
+        cmake_args.insert(-1, "-DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON")
     build_package(build_dir, run_cmake, cmake_args)
 
     if is_linux():
         install_libgcc(gcc_dir, inst_dir)
 
 
 def get_compiler(config, key):
     if key not in config: