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", |
Elliott Hughes | 055b2f3 | 2019-09-17 13:05:56 -0700 | [diff] [blame] | 9 | // We're actually implementing bionic here, so we don't want <math.h> |
| 10 | // to try to be helpful by renaming long double routines. |
| 11 | "-D__BIONIC_LP32_USE_LONG_DOUBLE", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 12 | "-DWANT_ROUNDING=0", |
| 13 | "-DWANT_ERRNO=0", |
Adhemerval Zanella | 9e6e832 | 2018-07-26 11:43:46 -0300 | [diff] [blame] | 14 | "-DFLT_EVAL_METHOD=0", |
| 15 | "-ffp-contract=fast", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 16 | ], |
Elliott Hughes | 3f88536 | 2019-10-15 09:04:39 -0700 | [diff] [blame^] | 17 | local_include_dirs: ["math/include"], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 18 | srcs: [ |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame] | 19 | "math/*.c", |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 20 | ], |
Adhemerval Zanella | 8e8d1b7 | 2018-08-06 13:22:58 -0300 | [diff] [blame] | 21 | |
| 22 | // arch-specific settings |
| 23 | arch: { |
| 24 | arm64: { |
| 25 | cflags: [ |
| 26 | "-DHAVE_FAST_FMA=1", |
| 27 | ], |
| 28 | }, |
| 29 | }, |
| 30 | |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 31 | target: { |
Christopher Ferris | 8785a76 | 2018-07-27 13:59:37 -0700 | [diff] [blame] | 32 | darwin: { |
| 33 | enabled: false, |
| 34 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 35 | linux_bionic: { |
| 36 | enabled: true, |
| 37 | }, |
| 38 | }, |
| 39 | stl: "none", |
Dan Willemsen | 35edf45 | 2018-12-03 13:56:24 -0800 | [diff] [blame] | 40 | static: { |
| 41 | system_shared_libs: [], |
| 42 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 43 | } |
| 44 | |
Elliott Hughes | e9c7105 | 2018-08-01 13:26:04 -0700 | [diff] [blame] | 45 | // adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*" |
| 46 | // adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*" |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 47 | cc_test { |
| 48 | name: "mathtest", |
| 49 | gtest: false, |
| 50 | host_supported: true, |
| 51 | cflags: ["-Werror", "-Wno-missing-braces"], |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 52 | srcs: [ |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame] | 53 | "math/test/mathtest.c" |
Adhemerval Zanella | 0d6b754 | 2018-07-26 15:17:39 -0300 | [diff] [blame] | 54 | ], |
Haibo Huang | cd7d536 | 2019-07-31 18:22:02 -0700 | [diff] [blame] | 55 | data: ["math/test/testcases/directed/*.tst"], |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 56 | local_include_dirs: ["math/include"], |
| 57 | target: { |
Elliott Hughes | e3966aa | 2018-07-26 08:46:15 -0700 | [diff] [blame] | 58 | darwin: { |
| 59 | enabled: false, |
| 60 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 61 | linux_bionic: { |
| 62 | enabled: true, |
| 63 | }, |
| 64 | }, |
| 65 | } |