Skip to content

Commit 4c10712

Browse files
authored
Simplify some settings definitions using -Xclang-linker (#403)
1 parent 7a0f81a commit 4c10712

File tree

4 files changed

+4
-32
lines changed

4 files changed

+4
-32
lines changed

Sources/SWBGenericUnixPlatform/Specs/UnixLd.xcspec

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@
145145
DefaultValue = YES;
146146
Condition = "NO";
147147
},
148-
{
149-
Name = "SWIFTC_LD_EXPORT_GLOBAL_SYMBOLS";
150-
Type = Boolean;
151-
DefaultValue = "$(LD_EXPORT_GLOBAL_SYMBOLS)";
152-
Condition = "$(LINKER_DRIVER) == swiftc";
153-
CommandLineArgs = {
154-
YES = (
155-
"-Xlinker", "--export-dynamic"
156-
);
157-
NO = ();
158-
};
159-
},
160148
{
161149
Name = "__INPUT_FILE_LIST_PATH__";
162150
Type = Path;

Sources/SWBUniversalPlatform/Specs/Ld.xcspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@
400400
CommandLineArgs = {
401401
"" = ();
402402
"<<otherwise>>" = (
403-
"-Xlinker",
404-
"-dylib_install_name",
405-
"-Xlinker",
403+
"-Xclang-linker",
404+
"-install_name",
405+
"-Xclang-linker",
406406
"$(value)",
407407
);
408408
};
@@ -509,7 +509,7 @@
509509
Condition = "$(LINKER_DRIVER) == swiftc";
510510
CommandLineArgs = {
511511
YES = (
512-
"-Xlinker", "-export_dynamic"
512+
"-Xclang-linker", "-rdynamic"
513513
);
514514
NO = ();
515515
};

Sources/SWBWebAssemblyPlatform/Specs/WasmLd.xcspec

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@
122122
);
123123
IsInputDependency = Yes;
124124
},
125-
{
126-
Name = "LD_EXPORT_GLOBAL_SYMBOLS";
127-
Type = Boolean;
128-
DefaultValue = NO;
129-
CommandLineArgs = {
130-
YES = ("-Xlinker", "--export-dynamic");
131-
NO = ();
132-
};
133-
Condition = "$(MACH_O_TYPE) == mh_dylib";
134-
},
135125
{
136126
Name = "CLANG__INPUT_FILE_LIST_PATH__";
137127
Type = Path;

Sources/SWBWindowsPlatform/Specs/WindowsLd.xcspec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@
160160
DefaultValue = YES;
161161
Condition = "NO";
162162
},
163-
{
164-
Name = "SWIFTC_LD_EXPORT_GLOBAL_SYMBOLS";
165-
Type = Boolean;
166-
Condition = NO;
167-
CommandLineArgs = ();
168-
},
169163
{
170164
Name = "__INPUT_FILE_LIST_PATH__";
171165
Type = Path;

0 commit comments

Comments
 (0)