diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2017-03-21 13:01:52 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-03-21 13:01:52 -0700 |
commit | 40e64db3861284708676f3e46302e32a54e846ec (patch) | |
tree | 883d4e35f045cc518713bc0a4c49ba289947339b | |
parent | 12ef04c22b07f1e4ec5a63009298e4537a2c8e1a (diff) | |
download | coreclr-40e64db3861284708676f3e46302e32a54e846ec.tar.gz coreclr-40e64db3861284708676f3e46302e32a54e846ec.tar.bz2 coreclr-40e64db3861284708676f3e46302e32a54e846ec.zip |
Add /silent option to crossgen (#10350)
This sets the NGenOptions.fSilent flag, which prevents displaying
the final output message.
This is useful for JIT asm diff generation.
-rw-r--r-- | src/inc/coregen.h | 1 | ||||
-rw-r--r-- | src/tools/crossgen/crossgen.cpp | 5 | ||||
-rw-r--r-- | src/zap/zapper.cpp | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/inc/coregen.h b/src/inc/coregen.h index 5ca7334e92..5864bbbaef 100644 --- a/src/inc/coregen.h +++ b/src/inc/coregen.h @@ -18,5 +18,6 @@ #define NGENWORKER_FLAGS_WINMD_RESILIENT 0x1000 #define NGENWORKER_FLAGS_READYTORUN 0x2000 #define NGENWORKER_FLAGS_NO_METADATA 0x4000 +#define NGENWORKER_FLAGS_SILENT 0x8000 #endif // _NGENCOMMON_H_ diff --git a/src/tools/crossgen/crossgen.cpp b/src/tools/crossgen/crossgen.cpp index df16e94bed..43e667bd25 100644 --- a/src/tools/crossgen/crossgen.cpp +++ b/src/tools/crossgen/crossgen.cpp @@ -108,6 +108,7 @@ void PrintUsageHelper() W("\n") W(" /? or /help - Display this screen\n") W(" /nologo - Prevents displaying the logo\n") + W(" /silent - Do not display completion message\n") W(" @response.rsp - Process command line arguments from specified\n") W(" response file\n") W(" /partialtrust - Assembly will be run in a partial trust domain.\n") @@ -498,6 +499,10 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv) { fDisplayLogo = false; } + else if (MatchParameter(*argv, W("silent"))) + { + dwFlags |= NGENWORKER_FLAGS_SILENT; + } else if (MatchParameter(*argv, W("Tuning"))) { dwFlags |= NGENWORKER_FLAGS_TUNING; diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp index 50e86db435..4d1330ee1f 100644 --- a/src/zap/zapper.cpp +++ b/src/zap/zapper.cpp @@ -105,7 +105,7 @@ STDAPI NGenWorker(LPCWSTR pwzFilename, DWORD dwFlags, LPCWSTR pwzPlatformAssembl ngo.fDebug = false; ngo.fDebugOpt = false; ngo.fProf = false; - ngo.fSilent = false; + ngo.fSilent = (dwFlags & NGENWORKER_FLAGS_SILENT) != 0; ngo.lpszExecutableFileName = pwzFilename; // V2 (Whidbey) |