Browse Source

Makefile update to write cargo.out and compile against nightly

rust-46711
Mahmoud Al-Qudsi 1 year ago
parent
commit
d3baf1637b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Makefile

+ 3
- 2
Makefile View File

@@ -1,4 +1,5 @@
1
-CARGO = cargo
1
+CARGO = cargo +$(TOOLCHAIN)
2
+TOOLCHAIN = nightly
2 3
 
3 4
 .PHONY: all bench build check clean doc install publish run test update
4 5
 
@@ -8,7 +9,7 @@ bench:
8 9
 	@$(CARGO) bench
9 10
 
10 11
 build:
11
-	@env TERM=xterm-256color $(CARGO) build --color=always 2>&1
12
+	@env TERM=xterm-256color $(CARGO) build --color=always 2>&1 && rm -f cargo.out || $(CARGO) build 2> cargo.out
12 13
 
13 14
 check: build test
14 15
 

Loading…
Cancel
Save