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 443882 049ca8da9a389e0b1eaa80b39fac404688870b11
parent 443881 f314c533a785494a5989ff26f937971cee9f8150
child 443883 e06fcd49e94fb7a043f1445587da7cf1c0bafb42
push id37131
push userbmo:janus926@gmail.com
push dateFri, 25 Nov 2016 10:57:58 +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 += "-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: