language: rust
cache: cargo
+
+os:
+- osx
+- linux
+
rust:
- nightly
before_script:
+# mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
+- curl -sSL https://rvm.io/mpapis.asc | gpg --import -
+- rvm get stable
+# actual travis code
- export PATH=$HOME/.local/bin:$PATH
- rustup target add i686-unknown-linux-gnu
- rustup target add i686-pc-windows-gnu
// Return success (0)
self.write_null(dest, dest_ty)?;
}
+
"_tlv_atexit" => {
- // TODO: handle it
- }
+ return err!(Unimplemented("can't interpret with full mir for osx target".to_owned()));
+ },
// Stub out all the other pthread calls to just return 0
link_name if link_name.starts_with("pthread_") => {
self.write_null(dest, dest_ty)?;
}
+ "mmap" => {
+ // This is a horrible hack, but well... the guard page mechanism calls mmap and expects a particular return value, so we give it that value
+ let addr = self.into_ptr(args[0].value)?;
+ self.write_ptr(dest, addr, dest_ty)?;
+ }
+
_ => {
return err!(Unimplemented(
format!("can't call C ABI function: {}", link_name),