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 up[msvc] allow mozjs to be built using MSVC on windows #82
Conversation
|
Seems like some of those should go upstream too. |
|
WinNSPR isn't upstream yet :( |
|
Is WinNSPR something we made then? I don't understand. @Ms2ger should sign off on this since he's in the middle of spidermonkey upgrade and these will need to be accounted for there too. Build stuff looks fine to me. Reviewed 6 of 7 files at r1, 1 of 1 files at r2. build.rs, line 35 [r2] (raw file):
Can we remove this commented out line? makefile.cargo, line 46 [r2] (raw file):
The target is not MSVC? makefile.cargo, line 51 [r2] (raw file):
Can we factor this into a branch for both windows targets so we aren't duplicating these lines? Comments from Reviewable |
bd54748
to
d6325ad
| let path = env::var_os("PATH").unwrap(); | ||
| let mut paths = env::split_paths(&path).collect::<Vec<_>>(); | ||
| paths.push(PathBuf::from(moztools)); | ||
| let new_path = env::join_paths(paths).unwrap(); |
This comment has been minimized.
This comment has been minimized.
| if target.contains("gnu") { | ||
| println!("cargo:rustc-link-lib=stdc++"); | ||
| } | ||
| //println!("cargo:rustc-link-lib=mozjs-48a1"); |
This comment has been minimized.
This comment has been minimized.
| println!("cargo:rustc-link-lib=static=js_static"); | ||
| } else { | ||
| println!("cargo:rustc-link-lib=stdc++"); | ||
| println!("cargo:rustc-link-lib=static=js_static"); |
This comment has been minimized.
This comment has been minimized.
|
You'll need to update |
|
Review status: 2 of 8 files reviewed at latest revision, 3 unresolved discussions. makefile.cargo, line 46 [r2] (raw file):
|
|
New changes look good to me. ms2ger, anything left you are waiting on? Reviewed 1 of 5 files at r3, 2 of 2 files at r4, 3 of 3 files at r5. Comments from Reviewable |
I'm not sure how to make |
|
@bors-servo r=metajack |
|
|
[msvc] allow mozjs to be built using MSVC on windows <!-- 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/82) <!-- Reviewable:end -->
vvuk commentedJun 22, 2016
•
edited by larsbergstrom
This change is