mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This changes the Swift resource directory from looking like
lib/
swift/
macosx/
libswiftCore.dylib
libswiftDarwin.dylib
x86_64/
Swift.swiftmodule
Swift.swiftdoc
Darwin.swiftmodule
Darwin.swiftdoc
to
lib/
swift/
macosx/
libswiftCore.dylib
libswiftDarwin.dylib
Swift.swiftmodule/
x86_64.swiftmodule
x86_64.swiftdoc
Darwin.swiftmodule/
x86_64.swiftmodule
x86_64.swiftdoc
matching the layout we use for multi-architecture swiftmodules
everywhere else (particularly frameworks).
There's no change in this commit to how Linux swiftmodules are
packaged. There's been past interest in going the /opposite/ direction
for Linux, since there's not standard support for fat
(multi-architecture) .so libraries. Moving the .so search path /down/
to an architecture-specific directory on Linux would allow the same
resource directory to be used for both host-compiling and
cross-compiling.
rdar://problem/43545560
24 lines
1.3 KiB
INI
24 lines
1.3 KiB
INI
if 'sourcekit' not in config.available_features:
|
|
config.unsupported = True
|
|
|
|
elif 'OS=linux-gnu' in config.available_features and 'LinuxDistribution=Ubuntu-14.04' in config.available_features:
|
|
config.unsupported = True
|
|
|
|
elif 'swift_evolve' in config.available_features:
|
|
# A lot of tests necessarily depend on standard library source order.
|
|
config.unsupported = True
|
|
|
|
else:
|
|
sed_clean = r"grep -v 'key.hash: \"0\"'"
|
|
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)\\.swiftmodule[/\\\\].*\\.swiftmodule\"/key.filepath: \\1.swiftmodule/g'"
|
|
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)\\.swiftmodule\"/key.filepath: \\1.swiftmodule/g'"
|
|
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)\\.swift\"/key.filepath: \\1.swift/g'"
|
|
sed_clean += r" | sed -e 's/key.filepath: \".*[/\\\\]\\(.*\\)-[0-9A-Z]*\\.pcm\"/key.filepath: \\1.pcm/g'"
|
|
sed_clean += r" | sed -e 's/ file=\\\\\".*[/\\\\]\\(.*\\)\\.h\\\\\"/ file=\\1.h/g'"
|
|
sed_clean += r" | sed -e 's/key.hash: \".*\"/key.hash: <hash>/g'"
|
|
|
|
config.substitutions.append( ('%sourcekitd-test', config.sourcekitd_test) )
|
|
config.substitutions.append( ('%complete-test', config.complete_test) )
|
|
config.substitutions.append( ('%swiftlib_dir', config.swiftlib_dir) )
|
|
config.substitutions.append( ('%sed_clean', sed_clean) )
|