-
Notifications
You must be signed in to change notification settings - Fork 23
Build with CMake on MSYS2 (UCRT64 environment) #94
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…cbf_stx.h from cbf.stx.y Heed the warning emitted by recent Bison (the api.pure option was probably introduced in 2.3b from 2008-05-27) and name the previously anonymous union typedef:ed to YYSTYPE in cbf_lex.h. The YYSTYPE typedef is retained in order to preserve the API, even though it may cause problems for downstream projects that also rely on Bison. Multiple targets in a rule appears to be a GNU make extension, but its use was already implied in Makefile. Do not include any generated files from the public headers.
Appears to have been manually added to the Bison-generated output.
Avoids false positive introduced in 79913a7.
Checked-in pycbf.py and pycbf_wrap.c were generated with SWIG 3.0.10 and interfere with the tests if run from the source directory; _pycbf.pyd is a 32-bit Windows binary. Fix Makefile to regenerate the SWIG interface files from current doc/CBFlib.html (checked-in CBFlib.txt is from 0.9.5, revised 22 February 2015; regenerating it requires e.g. links) and rebuild the Python module when necessary.
Remove unused LaTeX output; out-of-sync pycbf.toc may interfere with LaTeX. Escape underscores in text mode and do not use minipage for long listings. A container must have LaTeX (texlive-latex-recommended in Ubuntu) in order to build pycbf.pdf.
Explicitly open() text files in UTF-8 from Python; fix Fortran source generation for consistency. Passes 157 out of 192 (82%) CTest tests.
Both the compiled and the Python component (e.g. _pycbf.pyd and
pycbf.py, respectively) of the module used to be in
${CMAKE_BINARY_DIR}/pycbf. Adjust PYTHONPATH for tests accordingly.
Matters on Windows.
Tweak PATH to find CBFlib on Windows, do not explicitely load dependent libraries from Java. Collect test program definitions with their respective modules and cowardly refuse to build modules unless shared libraries are enabled.
yayahjb
approved these changes
Sep 4, 2025
Collaborator
yayahjb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasonable changes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Builds and passes all tests with Fortran (gfortran), Java (native Oracle Java installation, 24.0.1), and Python. Note that
cmd.exehas issues with UNC paths, which has implications for Ninja. Furthermore, if the source directory is kept under WSL, there are additional considerations.