Skip to content

MSVC build fixes #4299

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

Merged
merged 3 commits into from
Feb 28, 2019
Merged

MSVC build fixes #4299

merged 3 commits into from
Feb 28, 2019

Conversation

karkhaz
Copy link
Collaborator

@karkhaz karkhaz commented Feb 28, 2019

These patches enable CBMC to be built using the MSVC compiler, under the Visual Studio developer console, using CMake---no cygwin or mingw. There are warnings galore, but it does build.

I don't know whether we're actually intending to support this particular build configuration; if so, it's probably a good idea to add it to CI. I don't have time to do this right now, but if there's interest, I'll add it as the ωth item on my backlog...

src/ansi-c/library_check.sh does not work under MSVC, as that compiler
uses completely different flags. This commit removes the file generated
by that script---library-check.stamp---from the dependency graph under
cmake.

This commit fixes diffblue#4295.
This commit indents CMake directives that got protected by a conditional
in a previous commit.
This commit fixes failure-to-build on systems where the path to the
compiler contains spaces. This is common on Microsoft Windows, where the
compiler lives somewhere under `C:\Program Files`. Prior to this commit,
src/ansi-c/library_check.sh would try to execute `C:\Program` and fail.
@tautschnig
Copy link
Collaborator

I'll start playing with the CI set-up in #4300.

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 0bd112c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/102644044

@tautschnig tautschnig merged commit df2b3ca into diffblue:develop Feb 28, 2019
@karkhaz karkhaz deleted the kk-msvc-build-fixes branch February 28, 2019 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants