@@ -23,43 +23,27 @@ DBG_CONFIG_SETTINGS = {
23
23
"//command_line_option:compilation_mode" : "dbg" ,
24
24
"//command_line_option:features" : [
25
25
"-swift.cacheable_swiftmodules" ,
26
- "swift.debug_prefix_map" ,
27
- "-swift.file_prefix_map" ,
28
- ],
29
- }
30
-
31
- FILE_PREFIX_MAP_CONFIG_SETTINGS = {
32
- "//command_line_option:compilation_mode" : "dbg" ,
33
- "//command_line_option:features" : [
34
- "swift.debug_prefix_map" ,
35
- "swift.file_prefix_map" ,
36
26
],
37
27
}
38
28
39
29
CACHEABLE_DBG_CONFIG_SETTINGS = {
40
30
"//command_line_option:compilation_mode" : "dbg" ,
41
31
"//command_line_option:features" : [
42
32
"swift.cacheable_swiftmodules" ,
43
- "swift.debug_prefix_map" ,
44
- "-swift.file_prefix_map" ,
45
33
],
46
34
}
47
35
48
36
FASTBUILD_CONFIG_SETTINGS = {
49
37
"//command_line_option:compilation_mode" : "fastbuild" ,
50
38
"//command_line_option:features" : [
51
39
"-swift.cacheable_swiftmodules" ,
52
- "swift.debug_prefix_map" ,
53
- "-swift.file_prefix_map" ,
54
40
],
55
41
}
56
42
57
43
FASTBUILD_FULL_DI_CONFIG_SETTINGS = {
58
44
"//command_line_option:compilation_mode" : "fastbuild" ,
59
45
"//command_line_option:features" : [
60
46
"-swift.cacheable_swiftmodules" ,
61
- "swift.debug_prefix_map" ,
62
- "-swift.file_prefix_map" ,
63
47
"swift.full_debug_info" ,
64
48
],
65
49
}
@@ -68,9 +52,6 @@ OPT_CONFIG_SETTINGS = {
68
52
"//command_line_option:compilation_mode" : "opt" ,
69
53
"//command_line_option:features" : [
70
54
"-swift.cacheable_swiftmodules" ,
71
- # This feature indicates *support*, not unconditional enablement, which
72
- # is why it is present for `opt` mode as well.
73
- "swift.debug_prefix_map" ,
74
55
],
75
56
}
76
57
@@ -86,10 +67,6 @@ dbg_action_command_line_test = make_action_command_line_test_rule(
86
67
config_settings = DBG_CONFIG_SETTINGS ,
87
68
)
88
69
89
- file_prefix_map_command_line_test = make_action_command_line_test_rule (
90
- config_settings = FILE_PREFIX_MAP_CONFIG_SETTINGS ,
91
- )
92
-
93
70
cacheable_dbg_action_command_line_test = make_action_command_line_test_rule (
94
71
config_settings = CACHEABLE_DBG_CONFIG_SETTINGS ,
95
72
)
@@ -136,26 +113,13 @@ def debug_settings_test_suite(name, tags = []):
136
113
expected_argv = [
137
114
"-DDEBUG" ,
138
115
"-Xfrontend -serialize-debugging-options" ,
139
- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
116
+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
140
117
"-g" ,
141
118
],
142
119
not_expected_argv = [
143
120
"-DNDEBUG" ,
144
121
"-Xfrontend -no-serialize-debugging-options" ,
145
122
"-gline-tables-only" ,
146
- ],
147
- mnemonic = "SwiftCompile" ,
148
- tags = all_tags ,
149
- target_under_test = "//test/fixtures/debug_settings:simple" ,
150
- )
151
-
152
- # Verify that the build is remapping paths with a file prefix map.
153
- file_prefix_map_command_line_test (
154
- name = "{}_file_prefix_map_build" .format (name ),
155
- expected_argv = [
156
- "-Xwrapped-swift=-file-prefix-pwd-is-dot" ,
157
- ],
158
- not_expected_argv = [
159
123
"-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
160
124
],
161
125
mnemonic = "SwiftCompile" ,
@@ -171,13 +135,14 @@ def debug_settings_test_suite(name, tags = []):
171
135
expected_argv = [
172
136
"-DDEBUG" ,
173
137
"-Xfrontend -no-serialize-debugging-options" ,
174
- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
138
+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
175
139
"-g" ,
176
140
],
177
141
not_expected_argv = [
178
142
"-DNDEBUG" ,
179
143
"-Xfrontend -serialize-debugging-options" ,
180
144
"-gline-tables-only" ,
145
+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
181
146
],
182
147
mnemonic = "SwiftCompile" ,
183
148
tags = all_tags ,
@@ -191,13 +156,14 @@ def debug_settings_test_suite(name, tags = []):
191
156
expected_argv = [
192
157
"-DDEBUG" ,
193
158
"-Xfrontend -serialize-debugging-options" ,
194
- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
159
+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
195
160
"-gline-tables-only" ,
196
161
],
197
162
not_expected_argv = [
198
163
"-DNDEBUG" ,
199
164
"-Xfrontend -no-serialize-debugging-options" ,
200
165
"-g" ,
166
+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
201
167
],
202
168
mnemonic = "SwiftCompile" ,
203
169
tags = all_tags ,
@@ -211,25 +177,27 @@ def debug_settings_test_suite(name, tags = []):
211
177
expected_argv = [
212
178
"-DDEBUG" ,
213
179
"-Xfrontend -serialize-debugging-options" ,
214
- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
180
+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
215
181
"-g" ,
216
182
],
217
183
not_expected_argv = [
218
184
"-DNDEBUG" ,
219
185
"-Xfrontend -no-serialize-debugging-options" ,
220
186
"-gline-tables-only" ,
187
+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
221
188
],
222
189
mnemonic = "SwiftCompile" ,
223
190
tags = all_tags ,
224
191
target_under_test = "//test/fixtures/debug_settings:simple" ,
225
192
)
226
193
227
- # Verify that `-c opt` builds do not serialize debugging options or remap
228
- # paths, and have appropriate flags otherwise.
194
+ # Verify that `-c opt` builds do not serialize debugging options, but have
195
+ # appropriate flags otherwise.
229
196
opt_action_command_line_test (
230
197
name = "{}_opt_build" .format (name ),
231
198
expected_argv = [
232
199
"-DNDEBUG" ,
200
+ "-Xwrapped-swift=-file-prefix-pwd-is-dot" ,
233
201
],
234
202
not_expected_argv = [
235
203
"-DDEBUG" ,
@@ -243,13 +211,14 @@ def debug_settings_test_suite(name, tags = []):
243
211
target_under_test = "//test/fixtures/debug_settings:simple" ,
244
212
)
245
213
246
- # Verify that `-c opt` builds do not serialize debugging options or remap
247
- # paths, and have appropriate flags otherwise.
214
+ # Verify that `-c opt` builds do not serialize debugging options, but have
215
+ # appropriate flags otherwise.
248
216
cacheable_opt_action_command_line_test (
249
217
name = "{}_cacheable_opt_build" .format (name ),
250
218
expected_argv = [
251
219
"-DNDEBUG" ,
252
220
"-Xfrontend -no-serialize-debugging-options" ,
221
+ "-Xwrapped-swift=-file-prefix-pwd-is-dot" ,
253
222
],
254
223
not_expected_argv = [
255
224
"-Xfrontend -serialize-debugging-options" ,
0 commit comments