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