Skip to content

Commit f359c1f

Browse files
committed
[ELF] Disable error handling script if disableOutput
Fix ELF/error-handling-script-linux.test when LLD_IN_TEST=2 is set.
1 parent 988978f commit f359c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/Common/ErrorHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void ErrorHandler::error(const Twine &msg) {
289289

290290
void ErrorHandler::error(const Twine &msg, ErrorTag tag,
291291
ArrayRef<StringRef> args) {
292-
if (errorHandlingScript.empty()) {
292+
if (errorHandlingScript.empty() || disableOutput) {
293293
error(msg);
294294
return;
295295
}

0 commit comments

Comments
 (0)