blob: 765b21e2b5c1ab164423ebc938fb844c50e7145a [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2015 Google, Inc.
Arman Uguray9ca3fb82015-05-26 14:50:36 -07003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at:
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Jakub Pawlowskie2878532016-10-18 09:56:57 -070017set_default_toolchain("//build/toolchain/clang")
Jack He1f60d2d2016-11-22 12:39:52 -080018toolchain_config="//build/toolchain/clang:clang_config"
Scott James Remnant4c292312015-05-12 13:58:49 -070019
20set_defaults("executable") {
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070021 configs = [
22 "//build:linux",
23 "//build:gc",
24 "//build:default_include_dirs",
Jack He1f60d2d2016-11-22 12:39:52 -080025 toolchain_config,
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070026 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070027}
28
29set_defaults("shared_library") {
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070030 configs = [
31 "//build:linux",
32 "//build:gc",
33 "//build:default_include_dirs",
Jack He1f60d2d2016-11-22 12:39:52 -080034 toolchain_config,
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070035 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070036}
37
38set_defaults("source_set") {
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070039 configs = [
40 "//build:linux",
41 "//build:gc",
42 "//build:default_include_dirs",
Jack He1f60d2d2016-11-22 12:39:52 -080043 toolchain_config,
Arman Uguraycdc6f3a2015-05-21 13:39:18 -070044 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070045}
Arman Uguray2c494e12015-05-29 14:43:20 -070046
47set_defaults("static_library") {
48 configs = [
49 "//build:linux",
50 "//build:gc",
51 "//build:default_include_dirs",
Jack He1f60d2d2016-11-22 12:39:52 -080052 toolchain_config,
Arman Uguray2c494e12015-05-29 14:43:20 -070053 ]
54}