diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-10 07:36:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-10 07:36:41 +0000 |
commit | 0968bafad67d0aadf74471ee3a3f66cfb82a33e4 (patch) | |
tree | 866651ac16934fbb9265f211a6429226ddefd26b | |
parent | c1b3dba54a479a5b05a7fccf8b92bc3534876032 (diff) | |
parent | 1219dfba4a9a98bff94ec295593b6a1a00ad420c (diff) | |
download | libm-main.tar.gz |
-rw-r--r-- | patches/std.patch | 14 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/patches/std.patch b/patches/std.patch new file mode 100644 index 0000000..76b5c02 --- /dev/null +++ b/patches/std.patch @@ -0,0 +1,14 @@ +diff --git a/src/lib.rs b/src/lib.rs +index 4a17d3a..5493509 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -12,6 +12,9 @@ + #![allow(clippy::eq_op)] + #![allow(clippy::assign_op_pattern)] + ++#[cfg(android_dylib)] ++extern crate std; ++ + mod libm_helper; + mod math; + @@ -12,6 +12,9 @@ #![allow(clippy::eq_op)] #![allow(clippy::assign_op_pattern)] +#[cfg(android_dylib)] +extern crate std; + mod libm_helper; mod math; |