xref: /aosp_15_r20/external/angle/build/config/apple/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2023 The Chromium Authors
2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file.
4*8975f5c5SAndroid Build Coastguard Worker
5*8975f5c5SAndroid Build Coastguard Workerimport("//build/config/apple/symbols.gni")
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Worker# The ldflags referenced below are handled by
8*8975f5c5SAndroid Build Coastguard Worker# //build/toolchain/apple/linker_driver.py.
9*8975f5c5SAndroid Build Coastguard Worker# Remove this config if a target wishes to change the arguments passed to the
10*8975f5c5SAndroid Build Coastguard Worker# strip command during linking. This config by default strips all symbols
11*8975f5c5SAndroid Build Coastguard Worker# from a binary, but some targets may wish to specify an exports file to
12*8975f5c5SAndroid Build Coastguard Worker# preserve specific symbols.
13*8975f5c5SAndroid Build Coastguard Workerconfig("strip_all") {
14*8975f5c5SAndroid Build Coastguard Worker  if (enable_stripping) {
15*8975f5c5SAndroid Build Coastguard Worker    ldflags = [ "-Wcrl,strip,-x,-S" ]
16*8975f5c5SAndroid Build Coastguard Worker  }
17*8975f5c5SAndroid Build Coastguard Worker}
18