Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 1 | cc_library { |
| 2 | name: "libarm-optimized-routines", |
| 3 | host_supported: true, |
Adhemerval Zanella | d9635cd | 2018-07-27 14:03:55 -0300 | [diff] [blame] | 4 | recovery_available: true, |
dimitry | 70ee0b1 | 2019-05-06 12:09:20 +0200 | [diff] [blame] | 5 | native_bridge_supported: true, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 6 | cflags: [ |
| 7 | "-Werror", |
| 8 | "-O2", |
| 9 | "-DWANT_ROUNDING=0", |
| 10 | "-DWANT_ERRNO=0", |
Adhemerval Zanella | 9e6e832 | 2018-07-26 11:43:46 -0300 | [diff] [blame] | 11 | "-DFLT_EVAL_METHOD=0", |
| 12 | "-ffp-contract=fast", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 13 | ], |
| 14 | srcs: [ |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame^] | 15 | "math/*.c", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 16 | ], |
Adhemerval Zanella | 8e8d1b7 | 2018-08-06 13:22:58 -0300 | [diff] [blame] | 17 | |
| 18 | // arch-specific settings |
| 19 | arch: { |
| 20 | arm64: { |
| 21 | cflags: [ |
| 22 | "-DHAVE_FAST_FMA=1", |
| 23 | ], |
| 24 | }, |
| 25 | }, |
| 26 | |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 27 | target: { |
Christopher Ferris | 8785a76 | 2018-07-27 13:59:37 -0700 | [diff] [blame] | 28 | darwin: { |
| 29 | enabled: false, |
| 30 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 31 | linux_bionic: { |
| 32 | enabled: true, |
| 33 | }, |
| 34 | }, |
| 35 | stl: "none", |
Dan Willemsen | 35edf45 | 2018-12-03 13:56:24 -0800 | [diff] [blame] | 36 | static: { |
| 37 | system_shared_libs: [], |
| 38 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 39 | } |
| 40 | |
Elliott Hughes | e9c7105 | 2018-08-01 13:26:04 -0700 | [diff] [blame] | 41 | // adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*" |
| 42 | // adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*" |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 43 | cc_test { |
| 44 | name: "mathtest", |
| 45 | gtest: false, |
| 46 | host_supported: true, |
| 47 | cflags: ["-Werror", "-Wno-missing-braces"], |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 48 | srcs: [ |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame^] | 49 | "math/test/mathtest.c" |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 50 | ], |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame^] | 51 | data: ["math/test/testcases/directed/*.tst"], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 52 | local_include_dirs: ["math/include"], |
| 53 | target: { |
Elliott Hughes | e3966aa | 2018-07-26 08:46:15 -0700 | [diff] [blame] | 54 | darwin: { |
| 55 | enabled: false, |
| 56 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 57 | linux_bionic: { |
| 58 | enabled: true, |
| 59 | }, |
| 60 | }, |
| 61 | } |