]> granicus.if.org Git - clang/commitdiff
clang-cl: Enable plugins on Windows
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:43:13 +0000 (19:43 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 9 Feb 2016 19:43:13 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260266 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/plugins.c
test/lit.cfg

index 8117f72fa7ad2bf41238bfa3af4da3e4d46593c5..ab5d62338ed64df7c301627776f7e59d42eb259a 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -load %llvmshlibdir/PrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
+// RUN: %clang_cl -Xclang -load -Xclang %llvmshlibdir/PrintFunctionNames%pluginext -Xclang -plugin -Xclang print-fns %s 2>&1 | FileCheck %s
 // REQUIRES: plugins, examples
 
 // CHECK: top-level-decl: "x"
index e2166342685f2633f5476175e9ecaf914b55de37..dddab3ec89516de1ee440b4951369fb3b66197c4 100644 (file)
@@ -196,7 +196,7 @@ if not lit_config.quiet:
 
 # Plugins (loadable modules)
 # TODO: This should be supplied by Makefile or autoconf.
-if sys.platform in ['win32', 'cygwin']:
+if sys.platform in ['cygwin']:
     has_plugins = (config.enable_shared == 1)
 else:
     has_plugins = True