@@ -288,18 +288,38 @@ struct SwiftXcodegen: AsyncParsableCommand, Sendable {
288
288
return task
289
289
}
290
290
291
- func generate( ) async throws {
292
- let buildDirPath = buildDir. absoluteInWorkingDir. resolvingSymlinks
293
- log. info ( " Generating project for ' \( buildDirPath) '... " )
291
+ func showCaveatsIfNeeded( ) {
292
+ guard log. logLevel <= . note else { return }
294
293
294
+ var notes : [ String ] = [ ]
295
295
if projectOpts. useBuildableFolders {
296
- log . note ( """
297
- Buildable folders are enabled by default, which requires Xcode 16. You \
298
- can pass '--no-buildable-folders' to disable this. See the '--help' entry \
299
- for more info.
296
+ notes . append ( """
297
+ - Buildable folders are enabled by default, which requires Xcode 16. You
298
+ can pass '--no-buildable-folders' to disable this. See the '--help'
299
+ entry for more info.
300
300
""" )
301
301
}
302
302
303
+ if !projectOpts. addStdlibSwift {
304
+ notes. append ( """
305
+ - Swift standard library targets are disabled by default since they require
306
+ using a development snapshot of Swift with Xcode. You can pass '--stdlib-swift'
307
+ to enable. See the '--help' entry for more info.
308
+ """ )
309
+ }
310
+ guard !notes. isEmpty else { return }
311
+ log. note ( " Caveats: " )
312
+ for note in notes {
313
+ for line in note. components ( separatedBy: . newlines) {
314
+ log. note ( line)
315
+ }
316
+ }
317
+ }
318
+
319
+ func generate( ) async throws {
320
+ let buildDirPath = buildDir. absoluteInWorkingDir. resolvingSymlinks
321
+ log. info ( " Generating project for ' \( buildDirPath) '... " )
322
+
303
323
let projectRootDir = self . projectRootDir? . absoluteInWorkingDir
304
324
let buildDir = try NinjaBuildDir ( at: buildDirPath, projectRootDir: projectRootDir)
305
325
let outputDir = miscOptions. outputDir? . absoluteInWorkingDir ?? buildDir. projectRootDir
@@ -350,6 +370,7 @@ struct SwiftXcodegen: AsyncParsableCommand, Sendable {
350
370
try lldbLLVMWorkspace. write ( " LLDB+LLVM " , into: outputDir)
351
371
}
352
372
}
373
+ showCaveatsIfNeeded( )
353
374
}
354
375
355
376
func run( ) async {
0 commit comments