Skip to content
Snippets Groups Projects
Commit ab5cb557 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

clang-cl: Correctly ignore /openmp- (PR22748)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231026 91177308-0d34-0410-b5e6-96231b3b80d8
parent 876735a6
No related branches found
No related tags found
No related merge requests found
...@@ -225,6 +225,7 @@ def _SLASH_kernel_ : CLIgnoredFlag<"kernel-">; ...@@ -225,6 +225,7 @@ def _SLASH_kernel_ : CLIgnoredFlag<"kernel-">;
def _SLASH_nologo : CLIgnoredFlag<"nologo">; def _SLASH_nologo : CLIgnoredFlag<"nologo">;
def _SLASH_Ob1 : CLIgnoredFlag<"Ob1">; def _SLASH_Ob1 : CLIgnoredFlag<"Ob1">;
def _SLASH_Ob2 : CLIgnoredFlag<"Ob2">; def _SLASH_Ob2 : CLIgnoredFlag<"Ob2">;
def _SLASH_openmp_ : CLIgnoredFlag<"openmp-">;
def _SLASH_RTC : CLIgnoredJoined<"RTC">; def _SLASH_RTC : CLIgnoredJoined<"RTC">;
def _SLASH_sdl : CLIgnoredFlag<"sdl">; def _SLASH_sdl : CLIgnoredFlag<"sdl">;
def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">; def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">;
......
...@@ -183,8 +183,7 @@ ...@@ -183,8 +183,7 @@
// Wno: "-Wno-deprecated-declarations" // Wno: "-Wno-deprecated-declarations"
// Ignored options. Check that we don't get "unused during compilation" errors. // Ignored options. Check that we don't get "unused during compilation" errors.
// (/Zs is for syntax-only) // RUN: %clang_cl /c \
// RUN: %clang_cl /Zs \
// RUN: /analyze- \ // RUN: /analyze- \
// RUN: /cgthreads4 \ // RUN: /cgthreads4 \
// RUN: /cgthreads8 \ // RUN: /cgthreads8 \
...@@ -199,6 +198,7 @@ ...@@ -199,6 +198,7 @@
// RUN: /nologo \ // RUN: /nologo \
// RUN: /Ob1 \ // RUN: /Ob1 \
// RUN: /Ob2 \ // RUN: /Ob2 \
// RUN: /openmp- \
// RUN: /RTC1 \ // RUN: /RTC1 \
// RUN: /sdl \ // RUN: /sdl \
// RUN: /sdl- \ // RUN: /sdl- \
...@@ -211,6 +211,8 @@ ...@@ -211,6 +211,8 @@
// RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s // RUN: -### -- %s 2>&1 | FileCheck -check-prefix=IGNORED %s
// IGNORED-NOT: argument unused during compilation // IGNORED-NOT: argument unused during compilation
// IGNORED-NOT: no such file or directory // IGNORED-NOT: no such file or directory
// Don't confuse /openmp- with the /o flag:
// IGNORED-NOT: "-o" "penmp-.obj"
// Ignored options and compile-only options are ignored for link jobs. // Ignored options and compile-only options are ignored for link jobs.
// RUN: touch %t.obj // RUN: touch %t.obj
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment