Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCompile successfully on FreeBSD #80
Conversation
| fn main() { | ||
| let out_dir = env::var("OUT_DIR").unwrap(); | ||
| let target = env::var("TARGET").unwrap(); | ||
| let result = Command::new("make") | ||
| let result = Command::new(MAKE_CMD) |
This comment has been minimized.
This comment has been minimized.
mbrubeck
Jun 5, 2016
Contributor
Maybe this should use the $MAKE env var if it's set (and fall back to the constant if it's not), so people on other BSDs or similar systems can more easily build without patching the build script.
| fn find_make() -> String { | ||
| Command::new("gmake").status() | ||
| .map(|_| "gmake".to_string()) | ||
| .unwrap_or("make".to_string()) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| fn main() { | ||
| let out_dir = env::var("OUT_DIR").unwrap(); | ||
| let target = env::var("TARGET").unwrap(); | ||
| let result = Command::new("make") | ||
| let result = Command::new(env::var("MAKE").unwrap_or(find_make())) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| fn main() { | ||
| let out_dir = env::var("OUT_DIR").unwrap(); | ||
| let target = env::var("TARGET").unwrap(); | ||
| let result = Command::new("make") | ||
| let result = Command::new(env::var("MAKE").unwrap_or_else(find_make())) |
This comment has been minimized.
This comment has been minimized.
emilio
Jun 5, 2016
Member
nit again: you're still calling the function, remove the two parens because it's not building now :P
|
Updated |
|
@bors-servo delegate+ r=mbrubeck with or without some optional suggestions below
|
|
|
|
Thanks for the good suggestions!
|
|
|
1 similar comment
|
|
|
^ highfive bug? |
|
Homu instead of highfive, but yes. |
- Add static MAKE_CMD variable for the make command - replace instances of `make` with $(MAKE)
94bc6a5
to
5f81658
|
@bors-servo r=mbrubeck
|
|
|
Compile successfully on FreeBSD - Add static MAKE_CMD variable for the make command - replace instances of `make` with $(MAKE) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/80) <!-- Reviewable:end -->
|
|
|
servo/angle#8 failed on appveyor... currently investigating |
dlrobertson commentedJun 5, 2016
•
edited by larsbergstrom
makewith $(MAKE)This change is