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

Fix linking on windows #13

Merged
merged 2 commits into from
Jul 13, 2017
Merged

Conversation

mcgoo
Copy link
Contributor

@mcgoo mcgoo commented Jul 12, 2017

Fixes linking on Windows by disabling link time code generation, and adds testing target i686-pc-windows-msvc to AppVeyor.

let r = gcc::windows_registry::find(target.as_str(),"msbuild.exe")
.expect("could not find msbuild")
.args(&["win\\libsass.sln", "/p:LIBSASS_STATIC_LIB=1", "/p:Configuration=Release",
"/p:WholeProgramOptimization=false",
Copy link
Collaborator

Choose a reason for hiding this comment

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

is that arg necessary? Isn't it going to be slower with that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, it would not link unless I disabled Whole Program Optimization - the linker would say it was going to restart with link time code generation enabled, and then crash.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah too bad, hopefully it doesn't harm performance too much

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI - just stumbled across this. rust-lang/rust#26003

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, tried on #15 but it seems to be nightly only :/

@Keats
Copy link
Collaborator

Keats commented Jul 13, 2017

Amazing thanks

@Keats Keats merged commit dd6ce50 into compass-rs:master Jul 13, 2017
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