mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 02:12:13 +00:00
Replace cmake with cc
This commit is contained in:
parent
4746d04c44
commit
4de7deb568
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2146,7 +2146,7 @@ dependencies = [
|
|||||||
name = "wasmer-win-exception-handler"
|
name = "wasmer-win-exception-handler"
|
||||||
version = "0.16.2"
|
version = "0.16.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cmake",
|
"cc",
|
||||||
"libc",
|
"libc",
|
||||||
"wasmer-runtime-core",
|
"wasmer-runtime-core",
|
||||||
"winapi",
|
"winapi",
|
||||||
|
@ -13,4 +13,4 @@ winapi = { version = "0.3.8", features = ["winbase", "errhandlingapi", "minwinde
|
|||||||
libc = "0.2.60"
|
libc = "0.2.60"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cmake = "0.1"
|
cc = "1.0"
|
||||||
|
@ -7,4 +7,8 @@ fn main() {
|
|||||||
println!("cargo:rustc-link-search=native={}", dst.display());
|
println!("cargo:rustc-link-search=native={}", dst.display());
|
||||||
println!("cargo:rustc-link-lib=static={}", project_name);
|
println!("cargo:rustc-link-lib=static={}", project_name);
|
||||||
}
|
}
|
||||||
|
cc::Build::new()
|
||||||
|
.include("exception_handling")
|
||||||
|
.file("exception_handling/exception_handling.c")
|
||||||
|
.compile("exception_handling");
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
cmake-build-*
|
|
@ -1,6 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
|
||||||
project(exception_handling C)
|
|
||||||
|
|
||||||
add_library(exception_handling STATIC exception_handling.c)
|
|
||||||
|
|
||||||
install(TARGETS exception_handling DESTINATION .)
|
|
Loading…
x
Reference in New Issue
Block a user