diff --git a/.gitignore b/.gitignore index 6985cf1..871732e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1 @@ -# Generated by Cargo -# will have compiled files and executables -debug/ -target/ - -# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries -# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html -Cargo.lock - -# These are backup files generated by rustfmt -**/*.rs.bk - -# MSVC Windows builds of rustc generate these, which store debugging information -*.pdb +rust diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca59e59 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +GIT_URL ?= https://github.com/rust-lang/rust.git +TARGET ?= aarch64-apple-ios,aarch64-apple-darwin + +.PHONY: help +help: ## Show this help + @fgrep -h "## " $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' + +.PHONY: download +download: ## Download the Rust compiler + git clone --recurse-submodules -j8 ${GIT_URL} + +.PHONY: configure +configure: ## Configure the config.toml + cd rust && ./configure \ + --enable-verbose-tests \ + --enable-codegen-tests \ + --prefix=install \ + --tools=cargo,rustfmt,rust-analyzer \ + --target=${TARGET} \ + --set llvm.download-ci-llvm=true \ + --set build.verbose=3 \ + --set rust.channel=dev