@@ -1227,6 +1227,7 @@ import SWBMacro
12271227 try table. push ( core. specRegistry. internalMacroNamespace. declareStringMacro ( " DYNAMIC_LIBRARY_EXTENSION " ) as StringMacroDeclaration , literal: " dylib " )
12281228 try table. push ( core. specRegistry. internalMacroNamespace. declareBooleanMacro ( " _DISCOVER_COMMAND_LINE_LINKER_INPUTS " ) as BooleanMacroDeclaration , literal: true )
12291229 try table. push ( core. specRegistry. internalMacroNamespace. declareBooleanMacro ( " _DISCOVER_COMMAND_LINE_LINKER_INPUTS_INCLUDE_WL " ) as BooleanMacroDeclaration , literal: true )
1230+ table. push ( BuiltinMacros . LD_TRACE_FILE, literal: " tmp/obj/normal/x86_64/output.trace.json " )
12301231
12311232 let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
12321233 let delegate = try CapturingTaskGenerationDelegate ( producer: producer, userPreferences: . defaultForTesting)
@@ -1350,6 +1351,7 @@ import SWBMacro
13501351 let macro = table. namespace. lookupOrDeclareMacro ( type. self, name)
13511352 let expr = table. namespace. parseString ( value)
13521353 table. push ( macro, expr)
1354+ try table. push ( core. specRegistry. internalMacroNamespace. declarePathMacro ( " LD_TRACE_FILE " ) as PathMacroDeclaration , literal: " tmp/obj/normal/x86_64/output.trace.json " )
13531355
13541356 let delegate = try CapturingTaskGenerationDelegate ( producer: producer, userPreferences: . defaultForTesting)
13551357 let mockScope = MacroEvaluationScope ( table: table)
@@ -1549,6 +1551,8 @@ import SWBMacro
15491551 // We have to push this manually, since we do not have a real Setting's constructed scope.
15501552 table. push ( BuiltinMacros . PER_ARCH_LD, BuiltinMacros . namespace. parseString ( " $(LD_$(CURRENT_ARCH)) " ) )
15511553 table. push ( BuiltinMacros . PER_ARCH_LDPLUSPLUS, BuiltinMacros . namespace. parseString ( " $(LDPLUSPLUS_$(CURRENT_ARCH)) " ) )
1554+ table. push ( BuiltinMacros . LD_TRACE_FILE, literal: " tmp/obj/normal/x86_64/output.trace.json " )
1555+
15521556 let mockScope = MacroEvaluationScope ( table: table)
15531557
15541558 let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
@@ -1607,6 +1611,7 @@ import SWBMacro
16071611 var table = MacroValueAssignmentTable ( namespace: core. specRegistry. internalMacroNamespace)
16081612 table. push ( BuiltinMacros . arch, literal: " arm64e " )
16091613 table. push ( BuiltinMacros . variant, literal: " normal " )
1614+ table. push ( BuiltinMacros . LD_TRACE_FILE, literal: " tmp/obj/normal/x86_64/output.trace.json " )
16101615 table. push ( macroName, literal: value)
16111616 let mockScope = MacroEvaluationScope ( table: table)
16121617 let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
0 commit comments