| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 1 | // | 
 | 2 | // Copyright (C) 2012 The Android Open Source Project | 
 | 3 | // | 
 | 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 | // | 
 | 17 |  | 
 | 18 | //===================================================================== | 
 | 19 | // Static Library: libcompiler_rt-extras | 
 | 20 | //===================================================================== | 
 | 21 |  | 
 | 22 | cc_library_static { | 
 | 23 |     name: "libcompiler_rt-extras", | 
 | 24 |     host_supported: true, | 
 | 25 |     clang: true, | 
| Dan Albert | f9086c0 | 2016-09-14 16:53:08 -0700 | [diff] [blame] | 26 |     sdk_version: "9", | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 27 |     // The following list contains functions that are not available in libgcc.a, so | 
 | 28 |     // we potentially need them when using a Clang-built component (e.g., -ftrapv | 
 | 29 |     // with 64-bit integer multiplies. See http://llvm.org/bugs/show_bug.cgi?id=14469.) | 
 | 30 |     srcs: ["lib/builtins/mulodi4.c"], | 
| Colin Cross | 626be1a | 2016-04-15 16:31:52 -0700 | [diff] [blame] | 31 |     sanitize: { | 
 | 32 |         never: true, | 
 | 33 |     }, | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 34 |     stl: "none", | 
| Dan Willemsen | dd3079a | 2015-11-30 15:58:44 -0800 | [diff] [blame] | 35 |  | 
| Colin Cross | 44cbf8d | 2016-03-24 14:01:17 -0700 | [diff] [blame] | 36 |     cflags: [ | 
 | 37 |         "-Wno-unused-parameter", | 
 | 38 |         "-Werror", | 
 | 39 |     ], | 
 | 40 |  | 
 | 41 |     arch: { | 
 | 42 |         mips: { | 
 | 43 |             srcs: ["lib/builtins/clear_cache.c"], | 
 | 44 |         }, | 
 | 45 |         mips64: { | 
 | 46 |             srcs: ["lib/builtins/clear_cache.c"], | 
 | 47 |         }, | 
| Pirama Arumuga Nainar | d565f02 | 2016-06-27 15:46:50 -0700 | [diff] [blame] | 48 |         // Clang generates call to __unorddf2 builtin when compiling s_fmal.c | 
 | 49 |         // in bionic.  Generate this builtin from compiler-rt for arm64 and | 
 | 50 |         // x86_64 (where the corresponding libgcc does not have this builtin. | 
 | 51 |         arm64: { | 
 | 52 |             srcs: ["lib/builtins/comparedf2.c"], | 
 | 53 |         }, | 
 | 54 |         x86_64: { | 
 | 55 |             srcs: ["lib/builtins/comparedf2.c"], | 
 | 56 |         }, | 
| Colin Cross | 44cbf8d | 2016-03-24 14:01:17 -0700 | [diff] [blame] | 57 |     }, | 
 | 58 |  | 
| Dan Willemsen | dd3079a | 2015-11-30 15:58:44 -0800 | [diff] [blame] | 59 |     target: { | 
 | 60 |         windows: { | 
 | 61 |             enabled: true, | 
 | 62 |         }, | 
 | 63 |     }, | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 64 | } | 
 | 65 |  | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 66 | //===================================================================== | 
 | 67 | // Device and Host Static Library: libcompiler_rt | 
 | 68 | //===================================================================== | 
 | 69 |  | 
 | 70 | cc_library { | 
 | 71 |     name: "libcompiler_rt", | 
 | 72 |     host_supported: true, | 
 | 73 |     // The following list contains platform-independent functionalities. | 
 | 74 |     // | 
 | 75 |     // Skip apple_versioning.c since it is unused. | 
 | 76 |     // Skip atomic.c since it needs to be built separately according to the docs. | 
 | 77 |     srcs: [ | 
| Dan Willemsen | 62aec19 | 2016-05-12 12:51:04 -0700 | [diff] [blame] | 78 |         "lib/builtins/enable_execute_stack.c", | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 79 |         "lib/builtins/absvdi2.c", | 
 | 80 |         "lib/builtins/absvsi2.c", | 
 | 81 |         "lib/builtins/absvti2.c", | 
 | 82 |         "lib/builtins/adddf3.c", | 
 | 83 |         "lib/builtins/addsf3.c", | 
 | 84 |         "lib/builtins/addtf3.c", | 
 | 85 |         "lib/builtins/addvdi3.c", | 
 | 86 |         "lib/builtins/addvsi3.c", | 
 | 87 |         "lib/builtins/addvti3.c", | 
 | 88 |         "lib/builtins/ashldi3.c", | 
 | 89 |         "lib/builtins/ashlti3.c", | 
 | 90 |         "lib/builtins/ashrdi3.c", | 
 | 91 |         "lib/builtins/ashrti3.c", | 
 | 92 |         "lib/builtins/clear_cache.c", | 
 | 93 |         "lib/builtins/clzdi2.c", | 
 | 94 |         "lib/builtins/clzsi2.c", | 
 | 95 |         "lib/builtins/clzti2.c", | 
 | 96 |         "lib/builtins/cmpdi2.c", | 
 | 97 |         "lib/builtins/cmpti2.c", | 
 | 98 |         "lib/builtins/comparedf2.c", | 
 | 99 |         "lib/builtins/comparesf2.c", | 
 | 100 |         "lib/builtins/comparetf2.c", | 
 | 101 |         "lib/builtins/ctzdi2.c", | 
 | 102 |         "lib/builtins/ctzsi2.c", | 
 | 103 |         "lib/builtins/ctzti2.c", | 
 | 104 |         "lib/builtins/divdc3.c", | 
 | 105 |         "lib/builtins/divdf3.c", | 
 | 106 |         "lib/builtins/divdi3.c", | 
 | 107 |         "lib/builtins/divmoddi4.c", | 
 | 108 |         "lib/builtins/divmodsi4.c", | 
 | 109 |         "lib/builtins/divsc3.c", | 
 | 110 |         "lib/builtins/divsf3.c", | 
 | 111 |         "lib/builtins/divsi3.c", | 
 | 112 |         "lib/builtins/divtf3.c", | 
 | 113 |         "lib/builtins/divti3.c", | 
 | 114 |         "lib/builtins/divxc3.c", | 
 | 115 |         "lib/builtins/eprintf.c", | 
 | 116 |         "lib/builtins/extenddftf2.c", | 
 | 117 |         "lib/builtins/extendhfsf2.c", | 
 | 118 |         "lib/builtins/extendsfdf2.c", | 
 | 119 |         "lib/builtins/extendsftf2.c", | 
 | 120 |         "lib/builtins/ffsdi2.c", | 
 | 121 |         "lib/builtins/ffsti2.c", | 
 | 122 |         "lib/builtins/fixdfdi.c", | 
 | 123 |         "lib/builtins/fixdfsi.c", | 
 | 124 |         "lib/builtins/fixdfti.c", | 
 | 125 |         "lib/builtins/fixsfdi.c", | 
 | 126 |         "lib/builtins/fixsfsi.c", | 
 | 127 |         "lib/builtins/fixsfti.c", | 
 | 128 |         "lib/builtins/fixtfdi.c", | 
 | 129 |         "lib/builtins/fixtfsi.c", | 
 | 130 |         "lib/builtins/fixtfti.c", | 
 | 131 |         "lib/builtins/fixunsdfdi.c", | 
 | 132 |         "lib/builtins/fixunsdfsi.c", | 
 | 133 |         "lib/builtins/fixunsdfti.c", | 
 | 134 |         "lib/builtins/fixunssfdi.c", | 
 | 135 |         "lib/builtins/fixunssfsi.c", | 
 | 136 |         "lib/builtins/fixunssfti.c", | 
 | 137 |         "lib/builtins/fixunstfdi.c", | 
 | 138 |         "lib/builtins/fixunstfsi.c", | 
 | 139 |         "lib/builtins/fixunstfti.c", | 
 | 140 |         "lib/builtins/fixunsxfdi.c", | 
 | 141 |         "lib/builtins/fixunsxfsi.c", | 
 | 142 |         "lib/builtins/fixunsxfti.c", | 
 | 143 |         "lib/builtins/fixxfdi.c", | 
 | 144 |         "lib/builtins/fixxfti.c", | 
 | 145 |         "lib/builtins/floatdidf.c", | 
 | 146 |         "lib/builtins/floatdisf.c", | 
 | 147 |         "lib/builtins/floatdixf.c", | 
 | 148 |         "lib/builtins/floatsidf.c", | 
 | 149 |         "lib/builtins/floatsisf.c", | 
 | 150 |         "lib/builtins/floatsitf.c", | 
 | 151 |         "lib/builtins/floattidf.c", | 
 | 152 |         "lib/builtins/floattisf.c", | 
 | 153 |         "lib/builtins/floattixf.c", | 
 | 154 |         "lib/builtins/floatundidf.c", | 
 | 155 |         "lib/builtins/floatundisf.c", | 
 | 156 |         "lib/builtins/floatundixf.c", | 
 | 157 |         "lib/builtins/floatunsidf.c", | 
 | 158 |         "lib/builtins/floatunsisf.c", | 
 | 159 |         "lib/builtins/floatunsitf.c", | 
 | 160 |         "lib/builtins/floatuntidf.c", | 
 | 161 |         "lib/builtins/floatuntisf.c", | 
 | 162 |         "lib/builtins/floatuntixf.c", | 
 | 163 |         "lib/builtins/gcc_personality_v0.c", | 
 | 164 |         "lib/builtins/int_util.c", | 
 | 165 |         "lib/builtins/lshrdi3.c", | 
 | 166 |         "lib/builtins/lshrti3.c", | 
 | 167 |         "lib/builtins/moddi3.c", | 
 | 168 |         "lib/builtins/modsi3.c", | 
 | 169 |         "lib/builtins/modti3.c", | 
 | 170 |         "lib/builtins/muldc3.c", | 
 | 171 |         "lib/builtins/muldf3.c", | 
 | 172 |         "lib/builtins/muldi3.c", | 
 | 173 |         "lib/builtins/mulodi4.c", | 
 | 174 |         "lib/builtins/mulosi4.c", | 
 | 175 |         "lib/builtins/muloti4.c", | 
 | 176 |         "lib/builtins/mulsc3.c", | 
 | 177 |         "lib/builtins/mulsf3.c", | 
 | 178 |         "lib/builtins/multf3.c", | 
 | 179 |         "lib/builtins/multi3.c", | 
 | 180 |         "lib/builtins/mulvdi3.c", | 
 | 181 |         "lib/builtins/mulvsi3.c", | 
 | 182 |         "lib/builtins/mulvti3.c", | 
 | 183 |         "lib/builtins/mulxc3.c", | 
 | 184 |         "lib/builtins/negdf2.c", | 
 | 185 |         "lib/builtins/negdi2.c", | 
 | 186 |         "lib/builtins/negsf2.c", | 
 | 187 |         "lib/builtins/negti2.c", | 
 | 188 |         "lib/builtins/negvdi2.c", | 
 | 189 |         "lib/builtins/negvsi2.c", | 
 | 190 |         "lib/builtins/negvti2.c", | 
 | 191 |         "lib/builtins/paritydi2.c", | 
 | 192 |         "lib/builtins/paritysi2.c", | 
 | 193 |         "lib/builtins/parityti2.c", | 
 | 194 |         "lib/builtins/popcountdi2.c", | 
 | 195 |         "lib/builtins/popcountsi2.c", | 
 | 196 |         "lib/builtins/popcountti2.c", | 
 | 197 |         "lib/builtins/powidf2.c", | 
 | 198 |         "lib/builtins/powisf2.c", | 
 | 199 |         "lib/builtins/powitf2.c", | 
 | 200 |         "lib/builtins/powixf2.c", | 
 | 201 |         "lib/builtins/subdf3.c", | 
 | 202 |         "lib/builtins/subsf3.c", | 
 | 203 |         "lib/builtins/subtf3.c", | 
 | 204 |         "lib/builtins/subvdi3.c", | 
 | 205 |         "lib/builtins/subvsi3.c", | 
 | 206 |         "lib/builtins/subvti3.c", | 
 | 207 |         "lib/builtins/trampoline_setup.c", | 
 | 208 |         "lib/builtins/truncdfhf2.c", | 
 | 209 |         "lib/builtins/truncdfsf2.c", | 
 | 210 |         "lib/builtins/truncsfhf2.c", | 
 | 211 |         "lib/builtins/trunctfdf2.c", | 
 | 212 |         "lib/builtins/trunctfsf2.c", | 
 | 213 |         "lib/builtins/ucmpdi2.c", | 
 | 214 |         "lib/builtins/ucmpti2.c", | 
 | 215 |         "lib/builtins/udivdi3.c", | 
 | 216 |         "lib/builtins/udivmoddi4.c", | 
 | 217 |         "lib/builtins/udivmodsi4.c", | 
 | 218 |         "lib/builtins/udivmodti4.c", | 
 | 219 |         "lib/builtins/udivsi3.c", | 
 | 220 |         "lib/builtins/udivti3.c", | 
 | 221 |         "lib/builtins/umoddi3.c", | 
 | 222 |         "lib/builtins/umodsi3.c", | 
 | 223 |         "lib/builtins/umodti3.c", | 
 | 224 |     ], | 
 | 225 |  | 
| Colin Cross | 44cbf8d | 2016-03-24 14:01:17 -0700 | [diff] [blame] | 226 |     cflags: [ | 
 | 227 |         "-Wno-unused-parameter", | 
 | 228 |         "-Werror", | 
 | 229 |     ], | 
 | 230 |  | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 231 |     arch: { | 
 | 232 |         arm: { | 
 | 233 |             cflags: ["-D__ARM_EABI__"], | 
 | 234 |             srcs: [ | 
 | 235 |                 "lib/builtins/arm/aeabi_dcmp.S", | 
 | 236 |                 "lib/builtins/arm/aeabi_div0.c", | 
 | 237 |                 "lib/builtins/arm/aeabi_fcmp.S", | 
 | 238 |                 "lib/builtins/arm/aeabi_idivmod.S", | 
 | 239 |                 "lib/builtins/arm/aeabi_ldivmod.S", | 
 | 240 |                 "lib/builtins/arm/aeabi_memcmp.S", | 
 | 241 |                 "lib/builtins/arm/aeabi_memcpy.S", | 
 | 242 |                 "lib/builtins/arm/aeabi_memmove.S", | 
 | 243 |                 "lib/builtins/arm/aeabi_memset.S", | 
 | 244 |                 "lib/builtins/arm/aeabi_uidivmod.S", | 
 | 245 |                 "lib/builtins/arm/aeabi_uldivmod.S", | 
 | 246 |                 "lib/builtins/arm/comparesf2.S", | 
 | 247 |                 "lib/builtins/arm/divmodsi4.S", | 
 | 248 |                 "lib/builtins/arm/divsi3.S", | 
 | 249 |                 "lib/builtins/arm/modsi3.S", | 
 | 250 |                 "lib/builtins/arm/udivmodsi4.S", | 
 | 251 |                 "lib/builtins/arm/udivsi3.S", | 
 | 252 |                 "lib/builtins/arm/umodsi3.S", | 
 | 253 |                 "lib/builtins/arm/adddf3vfp.S", | 
 | 254 |                 "lib/builtins/arm/addsf3vfp.S", | 
 | 255 |                 "lib/builtins/arm/divdf3vfp.S", | 
 | 256 |                 "lib/builtins/arm/divsf3vfp.S", | 
 | 257 |                 "lib/builtins/arm/eqdf2vfp.S", | 
 | 258 |                 "lib/builtins/arm/eqsf2vfp.S", | 
 | 259 |                 "lib/builtins/arm/extendsfdf2vfp.S", | 
 | 260 |                 "lib/builtins/arm/fixdfsivfp.S", | 
 | 261 |                 "lib/builtins/arm/fixsfsivfp.S", | 
 | 262 |                 "lib/builtins/arm/fixunsdfsivfp.S", | 
 | 263 |                 "lib/builtins/arm/fixunssfsivfp.S", | 
 | 264 |                 "lib/builtins/arm/floatsidfvfp.S", | 
 | 265 |                 "lib/builtins/arm/floatsisfvfp.S", | 
 | 266 |                 "lib/builtins/arm/floatunssidfvfp.S", | 
 | 267 |                 "lib/builtins/arm/floatunssisfvfp.S", | 
 | 268 |                 "lib/builtins/arm/gedf2vfp.S", | 
 | 269 |                 "lib/builtins/arm/gesf2vfp.S", | 
 | 270 |                 "lib/builtins/arm/gtdf2vfp.S", | 
 | 271 |                 "lib/builtins/arm/gtsf2vfp.S", | 
 | 272 |                 "lib/builtins/arm/ledf2vfp.S", | 
 | 273 |                 "lib/builtins/arm/lesf2vfp.S", | 
 | 274 |                 "lib/builtins/arm/ltdf2vfp.S", | 
 | 275 |                 "lib/builtins/arm/ltsf2vfp.S", | 
 | 276 |                 "lib/builtins/arm/muldf3vfp.S", | 
 | 277 |                 "lib/builtins/arm/mulsf3vfp.S", | 
 | 278 |                 "lib/builtins/arm/nedf2vfp.S", | 
 | 279 |                 "lib/builtins/arm/negdf2vfp.S", | 
 | 280 |                 "lib/builtins/arm/negsf2vfp.S", | 
 | 281 |                 "lib/builtins/arm/nesf2vfp.S", | 
 | 282 |                 "lib/builtins/arm/subdf3vfp.S", | 
 | 283 |                 "lib/builtins/arm/subsf3vfp.S", | 
 | 284 |                 "lib/builtins/arm/truncdfsf2vfp.S", | 
 | 285 |                 "lib/builtins/arm/unorddf2vfp.S", | 
 | 286 |                 "lib/builtins/arm/unordsf2vfp.S", | 
 | 287 |             ], | 
 | 288 |             exclude_srcs: [ | 
 | 289 |                 "lib/builtins/comparesf2.c", | 
 | 290 |                 "lib/builtins/divmodsi4.c", | 
 | 291 |                 "lib/builtins/divsi3.c", | 
 | 292 |                 "lib/builtins/modsi3.c", | 
 | 293 |                 "lib/builtins/udivmodsi4.c", | 
 | 294 |                 "lib/builtins/udivsi3.c", | 
 | 295 |                 "lib/builtins/umodsi3.c", | 
 | 296 |             ], | 
 | 297 |         }, | 
 | 298 |         mips64: { | 
 | 299 |             cflags: [ | 
 | 300 |                 "-DCRT_HAS_128BIT", | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 301 |             ], | 
 | 302 |         }, | 
 | 303 |         x86: { | 
 | 304 |             srcs: [ | 
 | 305 |                 "lib/builtins/i386/ashldi3.S", | 
 | 306 |                 "lib/builtins/i386/ashrdi3.S", | 
 | 307 |                 "lib/builtins/i386/divdi3.S", | 
 | 308 |                 "lib/builtins/i386/floatdidf.S", | 
 | 309 |                 "lib/builtins/i386/floatdisf.S", | 
 | 310 |                 "lib/builtins/i386/floatdixf.S", | 
 | 311 |                 "lib/builtins/i386/floatundidf.S", | 
 | 312 |                 "lib/builtins/i386/floatundisf.S", | 
 | 313 |                 "lib/builtins/i386/floatundixf.S", | 
 | 314 |                 "lib/builtins/i386/lshrdi3.S", | 
 | 315 |                 "lib/builtins/i386/moddi3.S", | 
 | 316 |                 "lib/builtins/i386/muldi3.S", | 
 | 317 |                 "lib/builtins/i386/udivdi3.S", | 
 | 318 |                 "lib/builtins/i386/umoddi3.S", | 
 | 319 |             ], | 
 | 320 |             exclude_srcs: [ | 
 | 321 |                 "lib/builtins/ashldi3.c", | 
 | 322 |                 "lib/builtins/ashrdi3.c", | 
 | 323 |                 "lib/builtins/divdi3.c", | 
 | 324 |                 "lib/builtins/floatdidf.c", | 
 | 325 |                 "lib/builtins/floatdisf.c", | 
 | 326 |                 "lib/builtins/floatdixf.c", | 
 | 327 |                 "lib/builtins/floatundidf.c", | 
 | 328 |                 "lib/builtins/floatundisf.c", | 
 | 329 |                 "lib/builtins/floatundixf.c", | 
 | 330 |                 "lib/builtins/lshrdi3.c", | 
 | 331 |                 "lib/builtins/moddi3.c", | 
 | 332 |                 "lib/builtins/muldi3.c", | 
 | 333 |                 "lib/builtins/udivdi3.c", | 
 | 334 |                 "lib/builtins/umoddi3.c", | 
 | 335 |             ], | 
 | 336 |         }, | 
 | 337 |         x86_64: { | 
 | 338 |             srcs: [ | 
 | 339 |                 "lib/builtins/x86_64/floatundixf.S", | 
 | 340 |                 "lib/builtins/x86_64/floatdisf.c", | 
 | 341 |                 "lib/builtins/x86_64/floatdidf.c", | 
 | 342 |                 "lib/builtins/x86_64/floatdixf.c", | 
 | 343 |                 "lib/builtins/x86_64/floatundisf.S", | 
 | 344 |                 "lib/builtins/x86_64/floatundidf.S", | 
 | 345 |             ], | 
 | 346 |             exclude_srcs: [ | 
 | 347 |                 "lib/builtins/floatundixf.c", | 
 | 348 |                 "lib/builtins/floatdisf.c", | 
 | 349 |                 "lib/builtins/floatdidf.c", | 
 | 350 |                 "lib/builtins/floatdixf.c", | 
 | 351 |                 "lib/builtins/floatundisf.c", | 
 | 352 |                 "lib/builtins/floatundidf.c", | 
 | 353 |             ], | 
 | 354 |         }, | 
 | 355 |     }, | 
 | 356 |  | 
| Stephen Hines | a4c7828 | 2016-07-07 03:38:19 -0700 | [diff] [blame] | 357 |     sdk_version: "21", | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 358 |     target: { | 
 | 359 |         not_windows: { | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 360 |             host_ldlibs: [ | 
 | 361 |                 "-lpthread", | 
 | 362 |                 "-lc", | 
 | 363 |                 "-lm", | 
 | 364 |             ], | 
 | 365 |         }, | 
 | 366 |         android: { | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 367 |             shared_libs: ["libdl", "liblog"], | 
 | 368 |             static_libs: ["liblzma"], | 
 | 369 |         }, | 
 | 370 |         android_arm: { | 
 | 371 |             static_libs: ["libunwind_llvm"], | 
 | 372 |             ldflags: ["-Wl,--exclude-libs,libunwind_llvm.a"], | 
 | 373 |         }, | 
 | 374 |         android_arm64: { | 
| Dan Willemsen | 1ecd1da | 2016-05-10 13:05:43 -0700 | [diff] [blame] | 375 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 376 |             ldflags: ["-Wl,--exclude-libs,libunwindbacktrace.a"], | 
 | 377 |         }, | 
 | 378 |         android_mips: { | 
| Dan Willemsen | 1ecd1da | 2016-05-10 13:05:43 -0700 | [diff] [blame] | 379 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 380 |             ldflags: ["-Wl,--exclude-libs,libunwindbacktrace.a"], | 
 | 381 |         }, | 
 | 382 |         android_mips64: { | 
| Dan Willemsen | 1ecd1da | 2016-05-10 13:05:43 -0700 | [diff] [blame] | 383 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 384 |             ldflags: ["-Wl,--exclude-libs,libunwindbacktrace.a"], | 
 | 385 |         }, | 
 | 386 |         android_x86: { | 
| Dan Willemsen | 1ecd1da | 2016-05-10 13:05:43 -0700 | [diff] [blame] | 387 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 388 |             ldflags: ["-Wl,--exclude-libs,libunwindbacktrace.a"], | 
 | 389 |         }, | 
 | 390 |         android_x86_64: { | 
 | 391 |             srcs: ["lib/builtins/ppc/floatditf.c"], | 
| Dan Willemsen | 1ecd1da | 2016-05-10 13:05:43 -0700 | [diff] [blame] | 392 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 393 |             ldflags: ["-Wl,--exclude-libs,libunwindbacktrace.a"], | 
 | 394 |         }, | 
 | 395 |         linux: { | 
 | 396 |             static_libs: ["libunwindbacktrace"], | 
 | 397 |         }, | 
| Colin Cross | 44cbf8d | 2016-03-24 14:01:17 -0700 | [diff] [blame] | 398 |         windows: { | 
 | 399 |             static_libs: ["libunwindbacktrace"], | 
| Dan Willemsen | 62aec19 | 2016-05-12 12:51:04 -0700 | [diff] [blame] | 400 |             // Only build enable_execute_stack.c on non-Windows hosts. | 
 | 401 |             exclude_srcs: ["lib/builtins/enable_execute_stack.c"], | 
| Colin Cross | 44cbf8d | 2016-03-24 14:01:17 -0700 | [diff] [blame] | 402 |         }, | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 403 |     }, | 
 | 404 |  | 
 | 405 |     asflags: ["-integrated-as"], | 
 | 406 |     clang: true, | 
 | 407 |     no_libgcc: true, | 
 | 408 |  | 
| Colin Cross | 626be1a | 2016-04-15 16:31:52 -0700 | [diff] [blame] | 409 |     sanitize: { | 
 | 410 |         never: true, | 
 | 411 |     }, | 
| Dan Willemsen | 9dd1a51 | 2015-09-11 13:04:31 -0700 | [diff] [blame] | 412 |     stl: "none", | 
 | 413 | } | 
 | 414 |  | 
| Colin Cross | fbdb443 | 2016-04-07 13:27:37 -0700 | [diff] [blame] | 415 | cc_defaults { | 
 | 416 |     name: "asan_arch_defaults", | 
 | 417 |  | 
 | 418 |     enabled: false, | 
 | 419 |     target: { | 
 | 420 |         android_arm: { | 
 | 421 |             enabled: true, | 
 | 422 |         }, | 
 | 423 |         android_arm64: { | 
 | 424 |             enabled: true, | 
 | 425 |         }, | 
| Colin Cross | a53a075 | 2016-05-16 18:11:29 -0700 | [diff] [blame] | 426 |         android_mips: { | 
 | 427 |             enabled: true, | 
 | 428 |         }, | 
 | 429 |         android_mips64: { | 
 | 430 |             enabled: true, | 
 | 431 |         }, | 
| Colin Cross | fbdb443 | 2016-04-07 13:27:37 -0700 | [diff] [blame] | 432 |         android_x86: { | 
 | 433 |             enabled: true, | 
 | 434 |         }, | 
 | 435 |         linux: { | 
 | 436 |             enabled: true, | 
 | 437 |         }, | 
 | 438 |     }, | 
 | 439 | } | 
 | 440 |  | 
| Colin Cross | a53a075 | 2016-05-16 18:11:29 -0700 | [diff] [blame] | 441 | subdirs=["lib/*"] |