-
Notifications
You must be signed in to change notification settings - Fork 144
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
More distro friendly cmake fixes. #655
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #655 +/- ##
==========================================
+ Coverage 91.30% 91.31% +0.01%
==========================================
Files 185 185
Lines 42677 42690 +13
==========================================
+ Hits 38967 38984 +17
+ Misses 3710 3706 -4
Continue to review full report at Codecov.
|
@@ -154,6 +163,59 @@ if(NOT CMAKE_INSTALL_RPATH AND BUILD_SHARED_LIBS) | |||
set(CMAKE_INSTALL_RPATH ${base} ${base}/${relDir}) | |||
endif() | |||
|
|||
set(STD_FS_LIB "") | |||
# ==== The test below is based on: |
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.
Do you have an example compiler where this is still needed? Note that slang does not build with a pre-C++17 compiler, and the minimum supported gcc version is 9 (and clang is 10) neither of which need the separate lib. In a few months I will bump the minimum gcc version to 10 and start requiring C++20 support so I'm wondering if there's some old system that will be broken if not supporting an older version.
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.
- Yes, RHEL 8 (having gcc 8.x ) will fail without this.
- Not tested (myself) with other combinations outside fedora/rhel products.
A well proven routine is used from pybind11 library.
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.
OK, I can merge this for now, but please be aware that I don't have the ability to maintain the codebase for very old compilers and so the build may or may not work for GCC 8 (and as mentioned I will be raising the minimum required C++ version to 20 early in 2023) and may be broken by any future changes that I make. Even the GCC team does not support GCC 8 anymore.
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.
- Currently rhel8 is fine, in case you start require c++20, that's it, will drop out rhel8 support.
- There would be still some releng way to invoke gcc 10 even on RHEL 8, will update packaging at that time.
If interested in rhel/fedora native repo having sv-lang the automated (weekly) builds are here .
Signed-off-by: Balint Cristian <[email protected]>
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.
lgtm, thanks a lot for the PR!
Also, thank you for your patience ! |
(x ) This PR address few issues:
SLANG_LIB_NAME
for either STATIC or SHARED (see #650).FixSHARED
mode, add PIC related flags and condition library visibility settings.stdc++fs
/c++fs
variants for various compiler needs.(x) This PR preserves and does not affect current build behaviour.
Cc: @jrudess
(x) See the introduced advertisements:
(x) Builds pass on {x86_64, ppc64le, aarch64} x {rhel8, rhel9, fc35, fc36, fc37, fc38}, see:
https://copr.fedorainfracloud.org/coprs/rezso/HDL/build/5034654/
@MikePopoloski,
Thank you for having this excellent tool !
~Cristian.