xref: /aosp_15_r20/external/skia/gn/portable/BUILD.gn (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6config("add_exceptions") {
7  if (is_win) {
8    cflags_cc = [ "/EHsc" ]
9  } else {
10    cflags_cc = [ "-fexceptions" ]
11  }
12}
13
14config("add_rtti") {
15  if (is_win) {
16    cflags_cc = [ "/GR" ]
17  } else {
18    cflags_cc = [ "-frtti" ]
19  }
20}
21