Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Run devenv.exe /upgrade before build #26

Merged
merged 4 commits into from
May 15, 2018
Merged

Conversation

Geobert
Copy link
Contributor

@Geobert Geobert commented May 12, 2018

This run devenv /upgrade in order to make sass-rs to build on appveyor's VS2017 image

This run devenv /upgrade in order to make sass-rs to build on appveyor's VS2017 image
No panic if upgrade fails
Exec upgrade only if devenv is present


compile fix


test VS2015


add i686


test VS2017


Restore appveyor
@Keats
Copy link
Collaborator

Keats commented May 12, 2018

Does this fix the issue Cobalt has? Can we also update this repo appveyor to use 2017?

@Geobert
Copy link
Contributor Author

Geobert commented May 12, 2018

As for cobalt, I don't know yet, but this repo build with VS2013, VS2015 and VS2017 images on appveyor :)

@Keats
Copy link
Collaborator

Keats commented May 12, 2018

Can you update https://github.com/compass-rs/sass-rs/blob/master/appveyor.yml#L1 to use 2017 then as well as base image please?

Let's wait to see if that fixes the issue with Cobalt before merging.

@Geobert
Copy link
Contributor Author

Geobert commented May 12, 2018

How can I test for cobalt? I think it will work as I've tested it on my computer by modifying build.rs locally in the cargo register and it works :)

@Keats
Copy link
Collaborator

Keats commented May 12, 2018

Enable appveyor on your cobalt fork and use a git path for the sass-rs dependency https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories

@Geobert
Copy link
Contributor Author

Geobert commented May 12, 2018

Thanks, how do I specify git path when the dependency has this format:

[dependencies.sass-rs]
version = "0.2"
optional = true

@Geobert
Copy link
Contributor Author

Geobert commented May 12, 2018

Go it:
sass-rs = { git = "https://github.com/Geobert/sass-rs/", branch = "upgradeVS2017", optional = true }

@Geobert
Copy link
Contributor Author

Geobert commented May 12, 2018

@Keats
Copy link
Collaborator

Keats commented May 13, 2018

Nice!

How does sass/libsass#2648 fit into that PR?

@Geobert
Copy link
Contributor Author

Geobert commented May 13, 2018

It will upgrade their project to VS2017 and no impact for this PR as if already upgraded, nothing will happen :)

@@ -75,6 +75,20 @@ fn compile() {
} else {
"Win32"
};

let d = gcc::windows_registry::find(target.as_str(), "devenv.exe");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment explaining what this does? I'll merge it after

@Geobert
Copy link
Contributor Author

Geobert commented May 14, 2018

Done!

How does sass/libsass#2648 fit into that PR?

It seems that they won't accept the PR so we need this one to allows us to build with VS2017. They say it shouldn't ask for VS2010 so maybe something wrong with how gcc configures the env?

@Geobert
Copy link
Contributor Author

Geobert commented May 14, 2018

Oh no… I though this fatal error LNK1318: Unexpected PDB error; RPC (23) '(0x000006BA)' was fixed with VS2017 :-/

@Geobert
Copy link
Contributor Author

Geobert commented May 14, 2018

I just realised a mistake for i686, fixing it right now

@Keats Keats merged commit d2245ed into compass-rs:master May 15, 2018
@Keats
Copy link
Collaborator

Keats commented May 15, 2018

I just started getting the same kind of error on appveyor as well in https://ci.appveyor.com/project/Keats/gutenberg so hopefully this will fix my issues as well

@Geobert
Copy link
Contributor Author

Geobert commented May 15, 2018

Fingers crossed, but I think we'll still have some of these event if it's better with VS2017, I got one locally yesterday for the first time since investigating this issue

@Keats
Copy link
Collaborator

Keats commented May 15, 2018

It doesn't fix the error in Gutenberg sadly :/ https://ci.appveyor.com/project/Keats/gutenberg

@Geobert
Copy link
Contributor Author

Geobert commented May 15, 2018

This happened before on rust's github: rust-lang/rust#33145

It's considered fixed but obviously, something similar is happening :-/

@Keats
Copy link
Collaborator

Keats commented May 15, 2018

I'm going to try with different versions of Rust on appveyor as I didn't run into that at all before

@Geobert
Copy link
Contributor Author

Geobert commented May 15, 2018

Keep us posted, we're interested as well :D

@Geobert
Copy link
Contributor Author

Geobert commented May 17, 2018

found this: rust-lang/cargo#3161 (comment)
Which gives a link to this blog post: http://blog.peter-b.co.uk/2017/02/stop-mspdbsrv-from-breaking-ci-build.html

I'll give it a shot tonight

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants