Perform Build as Task (among other minor updates) #647
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed behavior changes
The following changes are proposed:
The purpose of this change
While attempting to build a project with Visual Studio 2017, I encountered issues caused by the presence of the hard-coded flags. Since the user can add
buildArgs
in the settings, these flags should be manually added by the user, or set as the default value ofbuildArgs
. Once I removed the flags, the build at least started, but encountered errors with using Intel compilers in Visual Studio. Suspecting environment problems, I added the capability to ignore the VS environment. I was still unable to verify the cause of the issue, but noticed that if I copy and pasted the command generated by CMake Tools into an integrated terminal, the build would run successfully. I subsequently changed the build command to provide a command string for a task. I also wanted to add customconfigureSettings
that are loaded from environment variables, so I needed to enhance this capability to eliminate a number of errors.