Skip to content

Commit 39ad053

Browse files
authored
Merge pull request rust-lang#274 from jordanrh1/fix-windows-arm
Fix undefined symbol errors on windows/arm
2 parents b41ba0b + 18cd300 commit 39ad053

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
33
name = "compiler_builtins"
4-
version = "0.1.5"
4+
version = "0.1.6"
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-lang-nursery/compiler-builtins"

src/arm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ pub unsafe extern "aapcs" fn __aeabi_memmove(dest: *mut u8, src: *const u8, n: u
164164
::mem::memmove(dest, src, n);
165165
}
166166

167-
#[cfg(not(target_os = "ios"))]
167+
#[cfg(not(any(target_os = "ios", target_env = "msvc")))]
168168
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
169169
#[cfg_attr(thumb, linkage = "weak")]
170170
pub unsafe extern "aapcs" fn __aeabi_memmove4(dest: *mut u8, src: *const u8, n: usize) {
171171
__aeabi_memmove(dest, src, n);
172172
}
173173

174-
#[cfg(not(target_os = "ios"))]
174+
#[cfg(not(any(target_os = "ios", target_env = "msvc")))]
175175
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
176176
#[cfg_attr(thumb, linkage = "weak")]
177177
pub unsafe extern "aapcs" fn __aeabi_memmove8(dest: *mut u8, src: *const u8, n: usize) {
@@ -220,14 +220,14 @@ pub unsafe extern "aapcs" fn __aeabi_memclr(dest: *mut u8, n: usize) {
220220
__aeabi_memset(dest, n, 0);
221221
}
222222

223-
#[cfg(not(target_os = "ios"))]
223+
#[cfg(not(any(target_os = "ios", target_env = "msvc")))]
224224
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
225225
#[cfg_attr(thumb, linkage = "weak")]
226226
pub unsafe extern "aapcs" fn __aeabi_memclr4(dest: *mut u8, n: usize) {
227227
__aeabi_memset4(dest, n, 0);
228228
}
229229

230-
#[cfg(not(target_os = "ios"))]
230+
#[cfg(not(any(target_os = "ios", target_env = "msvc")))]
231231
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
232232
#[cfg_attr(thumb, linkage = "weak")]
233233
pub unsafe extern "aapcs" fn __aeabi_memclr8(dest: *mut u8, n: usize) {

0 commit comments

Comments
 (0)