File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1710,16 +1710,6 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
1710
1710
config->driver |=
1711
1711
config->driverUponly || config->driverWdm || args.hasArg (OPT_driver);
1712
1712
1713
- // Check if any ObjFile instance has kernel enabled
1714
- if (!config->driver ) {
1715
- for (ObjFile *file : ctx.objFileInstances ) {
1716
- if (file->doesKernelDriver ()) {
1717
- config->driver = true ;
1718
- break ;
1719
- }
1720
- }
1721
- }
1722
-
1723
1713
// Handle /pdb
1724
1714
bool shouldCreatePDB =
1725
1715
(debug == DebugKind::Full || debug == DebugKind::GHash ||
@@ -2207,7 +2197,17 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
2207
2197
if (std::optional<StringRef> path = findLibIfNew (" Psapi.lib" ))
2208
2198
enqueuePath (*path, false , false );
2209
2199
}
2210
-
2200
+
2201
+ // Check if any ObjFile instance has kernel enabled
2202
+ if (!config->driver ) {
2203
+ for (ObjFile *file : ctx.objFileInstances ) {
2204
+ if (file->doesKernelDriver ()) {
2205
+ config->driver = true ;
2206
+ break ;
2207
+ }
2208
+ }
2209
+ }
2210
+
2211
2211
// Handle /RELEASE
2212
2212
if (args.hasArg (OPT_release))
2213
2213
config->writeCheckSum = true ;
You can’t perform that action at this time.
0 commit comments