remove debug

This commit is contained in:
Robin Appelman 2020-05-02 17:25:45 +02:00
commit c9a71e3911
3 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target /target
Cargo.lock Cargo.lock
*.smx *.smx
dist

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
.PHONY: target/i686-unknown-linux-gnu/release/libsourcenav.so
all: dist/sourcenav.ext.so
dist/sourcenav.ext.so: target/i686-unknown-linux-gnu/release/libsourcenav.so
cp target/i686-unknown-linux-gnu/release/libsourcenav.so dist/sourcenav.ext.so
target/i686-unknown-linux-gnu/release/libsourcenav.so:
docker run --rm -v /tmp/sourcenav_cargo_reg:/root/.cargo/registry -v /tmp/sourcenav_cargo_git:/root/.cargo/git \
-v "$(DIR)":/app icewind1991/old-libc-rust-builder build --release --target=i686-unknown-linux-gnu

View file

@ -24,11 +24,6 @@ impl<'ctx> TryIntoPlugin<'ctx> for NavTree {
#[native] #[native]
fn native_obj_new(_ctx: &IPluginContext, path: &CStr) -> NavTree { fn native_obj_new(_ctx: &IPluginContext, path: &CStr) -> NavTree {
println!("path: {}", path.to_str().unwrap());
println!(
"pwd: {}",
std::env::current_dir().unwrap().to_str().unwrap()
);
let data = read(path.to_str().unwrap()).unwrap(); let data = read(path.to_str().unwrap()).unwrap();
NavTree(get_quad_tree(data).unwrap()) NavTree(get_quad_tree(data).unwrap())
} }