Skip to content

Commit 64442af

Browse files
committed
fix inverted eval
1 parent 6e50b67 commit 64442af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/COFF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
23392339
args.hasFlag(OPT_highentropyva, OPT_highentropyva_no, true);
23402340

23412341
// Handle /nodbgdirmerge
2342-
config->mergeDebugDirectory = args.hasArg(OPT_nodbgdirmerge);
2342+
config->mergeDebugDirectory = !args.hasArg(OPT_nodbgdirmerge);
23432343

23442344
if (!config->dynamicBase &&
23452345
(config->machine == ARMNT || isAnyArm64(config->machine)))

lld/COFF/Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ void Writer::createMiscChunks() {
12321232
// Create Debug Information Chunks
12331233
if (config->mingw) {
12341234
debugInfoSec = buildidSec;
1235-
} else if (config->mergeDebugDirectory) {
1235+
} else if (!config->mergeDebugDirectory) {
12361236
debugInfoSec = cvinfoSec;
12371237
} else {
12381238
debugInfoSec = rdataSec;

0 commit comments

Comments
 (0)