diff options
author | Takuto Ikuta <takuto.ikuta@gmail.com> | 2018-11-13 04:14:09 +0000 |
---|---|---|
committer | Takuto Ikuta <takuto.ikuta@gmail.com> | 2018-11-13 04:14:09 +0000 |
commit | 245d94776f971903c0e238485c7a985c0a740dab (patch) | |
tree | 1fd57be0469a94565303a82af4dfba26ba0f0f71 /clang/test/Driver/cl-options.c | |
parent | e4faa5c7986b7d90d4cf695a39e2a2596ec9c508 (diff) | |
download | bcm5719-llvm-245d94776f971903c0e238485c7a985c0a740dab.tar.gz bcm5719-llvm-245d94776f971903c0e238485c7a985c0a740dab.zip |
[clang-cl] Do not allow using both /Zc:dllexportInlines- and /fallback flag
Summary: /Zc:dllexportInlines with /fallback may cause unexpected linker error. It is better to disallow compile rather than warn for this combination.
Reviewers: hans, thakis
Reviewed By: hans
Subscribers: cfe-commits, llvm-commits
Differential Revision: https://reviews.llvm.org/D54426
llvm-svn: 346733
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 12409431726..f5171d5c040 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -495,7 +495,7 @@ // RUN: %clang_cl /Zc:dllexportInlines /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlines %s // DllExportInlines-NOT: "-fno-dllexport-inlines" // RUN: %clang_cl /fallback /Zc:dllexportInlines- /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlinesFallback %s -// DllExportInlinesFallback: warning: option '/Zc:dllexportInlines-' is ignored when /fallback happens [-Woption-ignored] +// DllExportInlinesFallback: error: option '/Zc:dllexportInlines-' is ABI-changing and not compatible with '/fallback' // RUN: %clang_cl /Zi /c -### -- %s 2>&1 | FileCheck -check-prefix=Zi %s // Zi: "-gcodeview" |