DescriptionUse correct linker flags for iOS release builds.
iOS uses the same linker as Mac and thus should use the same linker flags
in Release mode (is_debug=false).
Fix the following error when linking base_unittest in Release mode:
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -stdlib=libc++ -mios-simulator-version-min=7.0 -Wl,-O1 -Wl,--gc-sections -Wl,--as-needed -o ./base_unittests.app/base_unittests -Wl,-filelist,./base_unittests.app/base_unittests.rsp -framework UIKit -framework QuartzCore -framework OpenGLES -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation
ld: unknown option: -O1
BUG=459705
Committed: https://crrev.com/5d2e00bce19e2fae5e1fa0419d78e92570026304
Cr-Commit-Position: refs/heads/master@{#342523}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 15 (6 generated)
|