mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add -fno-objc-msgsend-selector-stubs for deterministic builds
This commit is contained in:
parent
6a07227d8d
commit
f230639a81
3
.bazelrc
3
.bazelrc
@ -10,6 +10,9 @@ build --per_file_copt="submodules/LottieMeshSwift/LottieMeshBinding/Sources/.*\.
|
||||
|
||||
build --swiftcopt=-whole-module-optimization
|
||||
|
||||
build --per_file_copt=".*\.m$","@-fno-objc-msgsend-selector-stubs"
|
||||
build --per_file_copt=".*\.mm$","@-fno-objc-msgsend-selector-stubs"
|
||||
|
||||
# Uncomment for address sanitizer
|
||||
#build --swiftcopt=-sanitize=address
|
||||
#build --copt=-fsanitize=address
|
||||
|
@ -561,7 +561,7 @@ def build(bazel, arguments):
|
||||
bazel_command_line.set_continue_on_error(arguments.continueOnError)
|
||||
bazel_command_line.set_enable_sandbox(arguments.sandbox)
|
||||
|
||||
bazel_command_line.set_split_swiftmodules(not arguments.disableParallelSwiftmoduleGeneration)
|
||||
bazel_command_line.set_split_swiftmodules(arguments.enableParallelSwiftmoduleGeneration)
|
||||
|
||||
bazel_command_line.invoke_build()
|
||||
|
||||
@ -832,7 +832,7 @@ if __name__ == '__main__':
|
||||
help='Build configuration'
|
||||
)
|
||||
buildParser.add_argument(
|
||||
'--disableParallelSwiftmoduleGeneration',
|
||||
'--enableParallelSwiftmoduleGeneration',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Generate .swiftmodule files in parallel to building modules, can speed up compilation on multi-core '
|
||||
|
Loading…
x
Reference in New Issue
Block a user