mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
serialization: obfuscate the serialized search paths
We noticed some Swift clients rely on the serialized search paths in the module to find dependencies and droping these paths altogether can lead to build failures like rdar://85840921. This change teaches the serialization to obfuscate the search paths and the deserialization to recover them. This allows clients to keep accessing these paths without exposing them when shipping the module to other users.
This commit is contained in:
@@ -165,6 +165,10 @@ def print_clang_stats : Flag<["-"], "print-clang-stats">,
|
||||
|
||||
def serialize_debugging_options : Flag<["-"], "serialize-debugging-options">,
|
||||
HelpText<"Always serialize options for debugging (default: only for apps)">;
|
||||
|
||||
def serialized_path_obfuscate : Separate<["-"], "serialized-path-obfuscate">,
|
||||
HelpText<"Remap source paths in debug info">, MetaVarName<"<prefix=replacement>">;
|
||||
|
||||
def no_serialize_debugging_options :
|
||||
Flag<["-"], "no-serialize-debugging-options">,
|
||||
HelpText<"Never serialize options for debugging (default: only for apps)">;
|
||||
|
||||
Reference in New Issue
Block a user