Commit 8f2b492b authored by Stefan Lankes's avatar Stefan Lankes
Browse files

use rustc to find sysroot

afterwards use sysroot to find llvm-objcopy
parent 0d56659e
......@@ -16,6 +16,8 @@ RM := del
else
RM := rm -rf
endif
SYSROOT:=$(shell rustc --print sysroot)
OBJCOPY:=$(shell find $(SYSROOT) -name llvm-objcopy)
.PHONY: all loader clean docs
......@@ -31,4 +33,4 @@ docs:
loader:
@echo Build loader
cargo build -Z build-std=core,alloc $(opt) --target $(target)-loader.json
@llvm-objcopy --strip-debug -O elf32-i386 target/$(target)-loader/$(rdir)/rusty-loader
$(OBJCOPY) --strip-debug -O elf32-i386 target/$(target)-loader/$(rdir)/rusty-loader
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment