Bug 1316545 part 2 - Enable LLVM_EXPORT_SYMBOLS_FOR_PLUGIN for linking clang plugin on windows. r=ehsan draft
authorTing-Yu Chou <janus926@gmail.com>
Wed, 16 Nov 2016 14:00:06 +0800
changeset 446206 59a95751b4d981d44cbd5308bc11403c68811dfc
parent 445666 574717d9c715b0ea1bdbb287b1d7361a2f0a1e71
child 446207 8fa11395b8fd16ecbd294200bf1fc2bfe13d6f3b
push id37726
push userbmo:janus926@gmail.com
push dateThu, 01 Dec 2016 03:26:49 +0000
reviewersehsan
bugs1316545
milestone53.0a1
Bug 1316545 part 2 - Enable LLVM_EXPORT_SYMBOLS_FOR_PLUGIN 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: