Use correct linker flags for iOS release builds.
commit5d2e00bce19e2fae5e1fa0419d78e92570026304
authorsdefresne <sdefresne@chromium.org>
Sat, 8 Aug 2015 08:53:41 +0000 (8 01:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 8 Aug 2015 08:54:10 +0000 (8 08:54 +0000)
treea82f5375f7bb0f306a99f5ab5c5927f856733160
parenta1409625d200b76b8dfefa241df135808205ff2c
Use 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

Review URL: https://codereview.chromium.org/1274633004

Cr-Commit-Position: refs/heads/master@{#342523}
build/config/compiler/BUILD.gn