We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea1b1c commit 3c144abCopy full SHA for 3c144ab
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -147,10 +147,16 @@ class InProcessFunctionExecutorImpl : public BenchmarkRunner::FunctionExecutor {
147
CrashRecoveryContext::Disable();
148
PS.reset();
149
if (Crashed) {
150
+#ifdef LLVM_ON_UNIX
151
// See "Exit Status for Commands":
152
// https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html
153
constexpr const int kSigOffset = 128;
154
return make_error<SnippetSignal>(CRC.RetCode - kSigOffset);
155
+#else
156
+ // The exit code of the process on windows is not meaningful as a
157
+ // signal, so simply pass in -1 as the signal into the error.
158
+ return make_error<SnippetSignal>(-1);
159
+#endif // LLVM_ON_UNIX
160
}
161
162
0 commit comments