2 // Copyright (C) 2018 The Android Open Source Project
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 name: "swiftshader_common",
20 gnu_extensions: false,
23 "-Xclang", "-fuse-init-array",
24 "-fno-operator-names",
31 "-Woverloaded-virtual",
41 compile_multilib: "64",
44 // We don't need Darwin host-side builds
52 name: "swiftshader_common_release",
54 defaults: [ "swiftshader_common" ],
58 "-fomit-frame-pointer",
59 "-ffunction-sections",
65 name: "swiftshader_common_debug",
67 defaults: [ "swiftshader_common" ],
77 name: "swiftshader_subzero",
84 "-DALLOW_LLVM_IR_AS_INPUT=0",
85 "-DALLOW_MINIMAL_BUILD=0",
87 "-DICE_THREAD_LOCAL_HACK=1",
92 name: "swiftshader_platform_headers",
94 export_include_dirs: ["include"],
98 name: "swiftshader_host_headers",
99 device_supported: false,
100 host_supported: true,
101 export_include_dirs: ["include/Android"],
106 "third_party/llvm-subzero",
108 "third_party/subzero",