diff --git a/nebula-ffi/build.rs b/nebula-ffi/build.rs index a111955..4cfff8b 100644 --- a/nebula-ffi/build.rs +++ b/nebula-ffi/build.rs @@ -15,8 +15,7 @@ fn main() { compiler = "go"; } - gobuild::Build::new().compiler(compiler).file("main.go").compile("nebulaffi"); - gobuild::Build::new().buildmode(BuildMode::CShared).file("main.go").compile("nebulaffi"); + gobuild::Build::new().compiler(compiler).buildmode(BuildMode::CShared).file("main.go").compile("nebulaffi"); println!("Go compile success");