Skip to content
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

Fix building for MSVC 2019 and static Windows builds #109

Merged
merged 3 commits into from
Oct 18, 2019

Conversation

xobs
Copy link
Contributor

@xobs xobs commented Oct 18, 2019

This patchset accomplishes two things:

  1. It fixes minor build issues with MSVC 2019 (notably a missing include file and random seed support in ecpbram), and
  2. It applies similar patches as are in nextpnr to get boost static builds working on Windows

xobs added 3 commits October 17, 2019 17:09
On Windows, we must change C++ flags and add a #define directive in
order to get boost python to compile on Windows.

Modify the cmake file to add these defines when MSVC is defined.

Signed-off-by: Sean Cross <[email protected]>
The CRAM file makes use of `runtime_error`, which is defined in
<stdexcept>.  Previously, this header file wasn't included.

This fixes the build on MSVC 16 (Visual Studio 2019).

Signed-off-by: Sean Cross <[email protected]>
Add Windows versions of the seed manipulation functions so that ecpbram
compiles properly under MSVC.

Signed-off-by: Sean Cross <[email protected]>
@daveshah1 daveshah1 merged commit 72fe507 into YosysHQ:master Oct 18, 2019
@daveshah1
Copy link
Contributor

Many thanks for testing and fixing!

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

Successfully merging this pull request may close these issues.

2 participants