Changed the Swift compiler optimization level

Summary: This will allow us to use the debugger and see Swift variables when in debug mode while maintaining compiler optimizations for release mode

Reviewed By: samodom

Differential Revision: D39187042

fbshipit-source-id: 289e12d4202c5226c41d65cd3c781d6ac2d5986e
This commit is contained in:
Pablo Brizuela Guardado
2022-09-01 12:58:24 -07:00
committed by Facebook GitHub Bot
parent e692d113f2
commit e7542ef4c7
6 changed files with 4 additions and 4 deletions

View File

@@ -23,3 +23,5 @@ ENABLE_TESTABILITY = YES
// MTL
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE
SWIFT_OPTIMIZATION_LEVEL = -Onone

View File

@@ -24,3 +24,5 @@ ENABLE_TESTABILITY = YES
// MTL
MTL_ENABLE_DEBUG_INFO = NO
SWIFT_OPTIMIZATION_LEVEL = -O

View File

@@ -27,7 +27,6 @@ settings:
# We need to explicitly set them to maintain parity with
# the project file being replaced
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: NO
SWIFT_OPTIMIZATION_LEVEL: -O
targets:
FBSDKCoreKit-Static:

View File

@@ -32,7 +32,6 @@ settings:
# Some iOS defaults will be overridden by Xcodegen.
# We need to explicitly set them to maintain parity with
# the project file being replaced
SWIFT_OPTIMIZATION_LEVEL: -O
ENABLE_NS_ASSERTIONS: YES
schemes:

View File

@@ -31,7 +31,6 @@ settings:
# We need to explicitly set them to maintain parity with
# the project file being replaced
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: NO
SWIFT_OPTIMIZATION_LEVEL: -O
ENABLE_NS_ASSERTIONS: YES
targets:

View File

@@ -31,7 +31,6 @@ settings:
# We need to explicitly set them to maintain parity with
# the project file being replaced
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: NO
SWIFT_OPTIMIZATION_LEVEL: -O
ENABLE_NS_ASSERTIONS: YES
targets: