@@ -1227,6 +1227,7 @@ import SWBMacro
1227
1227
try table. push ( core. specRegistry. internalMacroNamespace. declareStringMacro ( " DYNAMIC_LIBRARY_EXTENSION " ) as StringMacroDeclaration , literal: " dylib " )
1228
1228
try table. push ( core. specRegistry. internalMacroNamespace. declareBooleanMacro ( " _DISCOVER_COMMAND_LINE_LINKER_INPUTS " ) as BooleanMacroDeclaration , literal: true )
1229
1229
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 " )
1230
1231
1231
1232
let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
1232
1233
let delegate = try CapturingTaskGenerationDelegate ( producer: producer, userPreferences: . defaultForTesting)
@@ -1350,6 +1351,7 @@ import SWBMacro
1350
1351
let macro = table. namespace. lookupOrDeclareMacro ( type. self, name)
1351
1352
let expr = table. namespace. parseString ( value)
1352
1353
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 " )
1353
1355
1354
1356
let delegate = try CapturingTaskGenerationDelegate ( producer: producer, userPreferences: . defaultForTesting)
1355
1357
let mockScope = MacroEvaluationScope ( table: table)
@@ -1549,6 +1551,8 @@ import SWBMacro
1549
1551
// We have to push this manually, since we do not have a real Setting's constructed scope.
1550
1552
table. push ( BuiltinMacros . PER_ARCH_LD, BuiltinMacros . namespace. parseString ( " $(LD_$(CURRENT_ARCH)) " ) )
1551
1553
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
+
1552
1556
let mockScope = MacroEvaluationScope ( table: table)
1553
1557
1554
1558
let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
@@ -1607,6 +1611,7 @@ import SWBMacro
1607
1611
var table = MacroValueAssignmentTable ( namespace: core. specRegistry. internalMacroNamespace)
1608
1612
table. push ( BuiltinMacros . arch, literal: " arm64e " )
1609
1613
table. push ( BuiltinMacros . variant, literal: " normal " )
1614
+ table. push ( BuiltinMacros . LD_TRACE_FILE, literal: " tmp/obj/normal/x86_64/output.trace.json " )
1610
1615
table. push ( macroName, literal: value)
1611
1616
let mockScope = MacroEvaluationScope ( table: table)
1612
1617
let producer = try MockCommandProducer ( core: core, productTypeIdentifier: " com.apple.product-type.framework " , platform: " macosx " )
0 commit comments