Bug 1316545 part 1 - Link clang plugin with the import library of clang.exe to fix unresolved symbols. r=ehsan draft
authorTing-Yu Chou <janus926@gmail.com>
Wed, 16 Nov 2016 12:36:58 +0800
changeset 445666 574717d9c715b0ea1bdbb287b1d7361a2f0a1e71
parent 444725 8387a4ada9a5c4cab059d8fafe0f8c933e83c149
child 445667 e3fd3304140c094e1ec864784b1940ab17edd66f
child 446200 492ba92c6f6f4970b8179fefaa1e9b173517aaba
child 446206 59a95751b4d981d44cbd5308bc11403c68811dfc
push id37577
push userbmo:janus926@gmail.com
push dateWed, 30 Nov 2016 03:02:56 +0000
reviewersehsan
bugs1316545
milestone53.0a1
Bug 1316545 part 1 - Link clang plugin with the import library of clang.exe to fix unresolved symbols. r=ehsan MozReview-Commit-ID: G2PtmjBVacj
build/autoconf/clang-plugin.m4
--- a/build/autoconf/clang-plugin.m4
+++ b/build/autoconf/clang-plugin.m4
@@ -51,17 +51,17 @@ if test -n "$ENABLE_CLANG_PLUGIN"; then
         dnl binary. In order to do this, we need to pass -flat_namespace and
         dnl -undefined suppress to the linker. This makes sure that we link the
         dnl symbols into the flat namespace provided by clang, and thus get
         dnl access to all of the symbols which are undefined in our dylib as we
         dnl are building it right now, and also that we don't fail the build
         dnl due to undefined symbols (which will be provided by clang).
         CLANG_LDFLAGS="-Wl,-flat_namespace -Wl,-undefined,suppress -lclangASTMatchers"
     elif test "${HOST_OS_ARCH}" = "WINNT"; then
-        CLANG_LDFLAGS="clangASTMatchers.lib"
+        CLANG_LDFLAGS="clang.lib"
     else
         CLANG_LDFLAGS="-lclangASTMatchers"
     fi
 
     if test -n "$CLANG_CL"; then
         dnl The llvm-config coming with clang-cl may give us arguments in the
         dnl /ARG form, which in msys will be interpreted as a path name.  So we
         dnl need to split the args and convert the leading slashes that we find