forked from OSchip/llvm-project
clang-cl: ignore ths /GS- flag
The /GS- flag is used to turn off run-time buffer security checks (/GS). Since no such checks are enabled in the first place, I think we should just ignore this flag. llvm-svn: 190900
This commit is contained in:
parent
d12e8020ec
commit
cfe2109978
|
@ -140,6 +140,7 @@ def _SLASH_TP : CLCompileFlag<"TP">, HelpText<"Treat all source files as C++">;
|
|||
|
||||
def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;
|
||||
def _SLASH_errorReport : CLIgnoredJoined<"errorReport">;
|
||||
def _SLASH_GS_ : CLIgnoredFlag<"GS-">;
|
||||
def _SLASH_nologo : CLIgnoredFlag<"nologo">;
|
||||
def _SLASH_Ob1 : CLIgnoredFlag<"Ob1">;
|
||||
def _SLASH_Ob2 : CLIgnoredFlag<"Ob2">;
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
// Ignored options. Check that we don't get "unused during compilation" errors.
|
||||
// (/Zs is for syntax-only, /WX is for -Werror)
|
||||
// RUN: %clang_cl /Zs /WX /analyze- /errorReport:foo /nologo /Ob1 /Ob2 -- %s
|
||||
// RUN: %clang_cl /Zs /WX /Zc:forScope /Zc:wchar_t /w12345 /wd1234 /RTC1 -- %s
|
||||
// RUN: %clang_cl /Zs /WX /Zc:forScope /Zc:wchar_t /w12345 /wd1234 /RTC1 /GS- -- %s
|
||||
|
||||
// Ignored options and compile-only options are ignored for link jobs.
|
||||
// RUN: touch %t.obj
|
||||
|
|
Loading…
Reference in New Issue