@@ -23,43 +23,27 @@ DBG_CONFIG_SETTINGS = {
2323 "//command_line_option:compilation_mode" : "dbg" ,
2424 "//command_line_option:features" : [
2525 "-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" ,
3626 ],
3727}
3828
3929CACHEABLE_DBG_CONFIG_SETTINGS = {
4030 "//command_line_option:compilation_mode" : "dbg" ,
4131 "//command_line_option:features" : [
4232 "swift.cacheable_swiftmodules" ,
43- "swift.debug_prefix_map" ,
44- "-swift.file_prefix_map" ,
4533 ],
4634}
4735
4836FASTBUILD_CONFIG_SETTINGS = {
4937 "//command_line_option:compilation_mode" : "fastbuild" ,
5038 "//command_line_option:features" : [
5139 "-swift.cacheable_swiftmodules" ,
52- "swift.debug_prefix_map" ,
53- "-swift.file_prefix_map" ,
5440 ],
5541}
5642
5743FASTBUILD_FULL_DI_CONFIG_SETTINGS = {
5844 "//command_line_option:compilation_mode" : "fastbuild" ,
5945 "//command_line_option:features" : [
6046 "-swift.cacheable_swiftmodules" ,
61- "swift.debug_prefix_map" ,
62- "-swift.file_prefix_map" ,
6347 "swift.full_debug_info" ,
6448 ],
6549}
@@ -68,9 +52,6 @@ OPT_CONFIG_SETTINGS = {
6852 "//command_line_option:compilation_mode" : "opt" ,
6953 "//command_line_option:features" : [
7054 "-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" ,
7455 ],
7556}
7657
@@ -86,10 +67,6 @@ dbg_action_command_line_test = make_action_command_line_test_rule(
8667 config_settings = DBG_CONFIG_SETTINGS ,
8768)
8869
89- file_prefix_map_command_line_test = make_action_command_line_test_rule (
90- config_settings = FILE_PREFIX_MAP_CONFIG_SETTINGS ,
91- )
92-
9370cacheable_dbg_action_command_line_test = make_action_command_line_test_rule (
9471 config_settings = CACHEABLE_DBG_CONFIG_SETTINGS ,
9572)
@@ -136,26 +113,13 @@ def debug_settings_test_suite(name, tags = []):
136113 expected_argv = [
137114 "-DDEBUG" ,
138115 "-Xfrontend -serialize-debugging-options" ,
139- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
116+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
140117 "-g" ,
141118 ],
142119 not_expected_argv = [
143120 "-DNDEBUG" ,
144121 "-Xfrontend -no-serialize-debugging-options" ,
145122 "-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 = [
159123 "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
160124 ],
161125 mnemonic = "SwiftCompile" ,
@@ -171,13 +135,14 @@ def debug_settings_test_suite(name, tags = []):
171135 expected_argv = [
172136 "-DDEBUG" ,
173137 "-Xfrontend -no-serialize-debugging-options" ,
174- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
138+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
175139 "-g" ,
176140 ],
177141 not_expected_argv = [
178142 "-DNDEBUG" ,
179143 "-Xfrontend -serialize-debugging-options" ,
180144 "-gline-tables-only" ,
145+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
181146 ],
182147 mnemonic = "SwiftCompile" ,
183148 tags = all_tags ,
@@ -191,13 +156,14 @@ def debug_settings_test_suite(name, tags = []):
191156 expected_argv = [
192157 "-DDEBUG" ,
193158 "-Xfrontend -serialize-debugging-options" ,
194- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
159+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
195160 "-gline-tables-only" ,
196161 ],
197162 not_expected_argv = [
198163 "-DNDEBUG" ,
199164 "-Xfrontend -no-serialize-debugging-options" ,
200165 "-g" ,
166+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
201167 ],
202168 mnemonic = "SwiftCompile" ,
203169 tags = all_tags ,
@@ -211,25 +177,27 @@ def debug_settings_test_suite(name, tags = []):
211177 expected_argv = [
212178 "-DDEBUG" ,
213179 "-Xfrontend -serialize-debugging-options" ,
214- "-Xwrapped-swift=-debug -prefix-pwd-is-dot" ,
180+ "-Xwrapped-swift=-file -prefix-pwd-is-dot" ,
215181 "-g" ,
216182 ],
217183 not_expected_argv = [
218184 "-DNDEBUG" ,
219185 "-Xfrontend -no-serialize-debugging-options" ,
220186 "-gline-tables-only" ,
187+ "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ,
221188 ],
222189 mnemonic = "SwiftCompile" ,
223190 tags = all_tags ,
224191 target_under_test = "//test/fixtures/debug_settings:simple" ,
225192 )
226193
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.
229196 opt_action_command_line_test (
230197 name = "{}_opt_build" .format (name ),
231198 expected_argv = [
232199 "-DNDEBUG" ,
200+ "-Xwrapped-swift=-file-prefix-pwd-is-dot" ,
233201 ],
234202 not_expected_argv = [
235203 "-DDEBUG" ,
@@ -243,13 +211,14 @@ def debug_settings_test_suite(name, tags = []):
243211 target_under_test = "//test/fixtures/debug_settings:simple" ,
244212 )
245213
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.
248216 cacheable_opt_action_command_line_test (
249217 name = "{}_cacheable_opt_build" .format (name ),
250218 expected_argv = [
251219 "-DNDEBUG" ,
252220 "-Xfrontend -no-serialize-debugging-options" ,
221+ "-Xwrapped-swift=-file-prefix-pwd-is-dot" ,
253222 ],
254223 not_expected_argv = [
255224 "-Xfrontend -serialize-debugging-options" ,
0 commit comments