forked from swiftlang/swift-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetalLinker.xcspec
More file actions
112 lines (111 loc) · 4.24 KB
/
Copy pathMetalLinker.xcspec
File metadata and controls
112 lines (111 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
(
{
Type = Compiler;
Identifier = "com.apple.compilers.metal-linker";
Name = "Metal Linker";
Description = "Links Metal AIR files";
CommandLine = "metal [options] [inputs]";
RuleName = "MetalLink [output]";
ExecDescription = "Linking Metal AIR $(OutputFile:file)";
ProgressDescription = "Linking Metal AIR $(CommandProgressByType)";
InputFileTypes = (
"compiled.air",
);
InputFileGroupings = (
tool,
);
Outputs = (
"$(MTLLINKER_OUTPUT_FILE)",
);
OutputsAreProducts = YES;
IsArchitectureNeutral = YES;
SynthesizeBuildRule = YES;
CommandOutputParser = "XCGccCommandOutputParser";
Options = (
{
Name = "MTLLINKER_TARGET_TRIPLE";
Type = String;
DefaultValue = "air64-$(LLVM_TARGET_TRIPLE_VENDOR)-$(LLVM_TARGET_TRIPLE_OS_VERSION)$(LLVM_TARGET_TRIPLE_SUFFIX)";
CommandLineArgs = ( "-target", "$(value)" );
},
{
Name = "MTLLINKER_INCLUDE_SOURCE";
Type = String;
CommandLineArgs = ( "-frecord-sources" );
Condition = "$(MTL_ENABLE_DEBUG_INFO) == INCLUDE_SOURCE";
},
{
Name = "MTLLINKER_OUTPUT_FILE";
Type = String;
DefaultValue = "$(METAL_LIBRARY_OUTPUT_DIR)/$(METAL_LIBRARY_FILE_BASE).metallib";
CommandLineArgs = (
"-o",
"$(value)",
);
},
{
Name = "MTL_LANGUAGE_REVISION_optgen";
Type = Enumeration;
DefaultValue = "$(MTL_LANGUAGE_REVISION)";
Values = (
UseDeploymentTarget,
iOSMetal10,
Metal11,
Metal12,
Metal20,
Metal21,
Metal22,
Metal23,
Metal24,
);
CommandLineArgs = {
UseDeploymentTarget = ( );
iOSMetal10 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal1.0", );
Metal11 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal1.1", );
Metal12 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal1.2", );
Metal20 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal2.0", );
Metal21 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal2.1", );
Metal22 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal2.2", );
Metal23 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal2.3", );
Metal24 = ( "-std=$(MTL_LANGUAGE_REVISION_dialect)-metal2.4", );
Metal30 = ( "-std=metal3.0", );
Metal31 = ( "-std=metal3.1", );
Metal32 = ( "-std=metal3.2", );
Metal40 = ( "-std=metal4.0", );
};
},
{
Name = "MTLLINKER_FLAGS";
Type = StringList;
Category = BuildOptions;
DefaultValue = "";
CommandLinePrefixFlag = "";
},
{
Name = "MTLLINKER_ALTERNATE_LINKER";
Type = String;
CommandLineArgs = {
"" = ();
"<<otherwise>>" = ( "-fuse-ld=$(value)" );
};
},
{
Name = SDKROOT;
Type = Path;
SetValueInEnvironmentVariable = SDKROOT;
},
);
IncludeInUnionedToolDefaults = NO;
},
)