Commit 06b9bd7d authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1617794 - Fix cross-building the clang-plugin for Windows targets. r=dmajor

Differential Revision: https://phabricator.services.mozilla.com/D64296

--HG--
extra : moz-landing-system : lando
parent d747b652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ CHECK(DanglingOnTemporaryChecker, "dangling-on-temporary")
CHECK(ExplicitImplicitChecker, "implicit-constructor")
CHECK(ExplicitOperatorBoolChecker, "explicit-operator-bool")
CHECK(KungFuDeathGripChecker, "kungfu-death-grip")
#ifdef _WIN32
#ifdef TARGET_IS_WINDOWS
CHECK(LoadLibraryUsageChecker, "load-library-usage")
CHECK(FopenUsageChecker, "fopen-usage")
#endif
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
#include "DanglingOnTemporaryChecker.h"
#include "ExplicitImplicitChecker.h"
#include "ExplicitOperatorBoolChecker.h"
#ifdef _WIN32
#ifdef TARGET_IS_WINDOWS
#include "LoadLibraryUsageChecker.h"
#include "FopenUsageChecker.h"
#endif
+2 −0
Original line number Diff line number Diff line
@@ -47,7 +47,9 @@ HOST_SOURCES += [
    'VariableUsageHelpers.cpp',
]

# Ideally, we wouldn't have compile-time choices wrt checkes. bug 1617153.
if CONFIG['OS_ARCH'] == 'WINNT':
    HOST_DEFINES['TARGET_IS_WINDOWS'] = True
    HOST_SOURCES += [
        'FopenUsageChecker.cpp',
        'LoadLibraryUsageChecker.cpp',