-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio Linux target improvement #211
Comments
Indeed, we could expose more options to allow this :) Note that we mostly use cross-compilation with FastBuild and clang from windows when targeting linux, I hope to one day find time to write a sample in this repo to show how to do that :) |
The depot https://github.com/sammyfreg/hello-world also generate a Linux solution using Sharpmake. I have been using this repo to test setuping my build system for a new project. It seems like its not missing much to be able to specify a toolset targetting WSL. And using WSL seems much easier than setuping a remote Linux config. |
I just noticed that we can already specify the Linux toolset on Sharpmake 0.21, using I was still on 0.18, and that option wasn't available at the time. Now I only need to figure out some compiling error linked to path settings. |
I have been unable to generate a working VS Linux project. It almost works but fails on the obj path. Its giving me an error with a path badly joined with a 'home' directory and missing a '/'.
I have looked at the project file itself, and couldn't find any reference to the When comparing with a working minimal VS Linux project (created using 'new project' in VS) I have been unable to find any significant difference that would cause this path error.
The one difference I could not explain for looking at the project file, was that the properties dialog was missing a few elements in the Sharpmake version : However, adding the same properties values in the project file directly doesn't seem to fix the issue either. At this point, I believe I will set having a working VS Linux output, aside. If someone is interested in figuring this out, https://github.com/sammyfreg/hello-world contains all of the needed files (the sample is very simple, with only the bare minimum sources files) |
I saw that Sharpmake also allows us to target Linux in it Visual Studio projects, unfortunately, with only one 'Platform Toolset' (GCC for Remote Linux).
Would it be possible to add the new Linux Toolset to the project configuration? The WSL toolset would need to not have the '$(RemoteProjectDir)' added to the Output/Intermediate Directories.
The text was updated successfully, but these errors were encountered: