-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Windows: Fix OpenMP Linkage #29
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Unknown OpenMP types at link type if used in public symbols.
recipe/bld.bat
Outdated
@@ -5,6 +5,10 @@ | |||
if not exist %LIBRARY_PREFIX%\bin md %LIBRARY_PREFIX%\bin | |||
if errorlevel 1 exit 1 | |||
|
|||
:: OpenMP flags | |||
set "CXXFLAGS=%CXXFLAGS% -openmp" | |||
set "LDFLAGS=%LDFLAGS% -openmp" |
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.
It does not seem to know about the -openmp
flag.
Should we try something like -DCMAKE_EXE_LINKER_FLAGS="-fopenmp"
suggested here, https://discourse.cmake.org/t/openmp-linking-errors-on-windows-using-ninja-and-clang/7246
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.
That should end up in LDFLAGS
as well though...
https://cmake.org/cmake/help/latest/variable/CMAKE_EXE_LINKER_FLAGS.html
On my laptop:
$ lld-link -openmp
lld-link: warning: ignoring unknown argument '-openmp'
lld-link: error: no input files
$ lld-link -fopenmp
lld-link: warning: ignoring unknown argument '-fopenmp'
lld-link: error: no input files
Merging for now to fix BLAST-ImpactX/impactx#550 |
Ouch, merging this was a mistake. Reverted. |
Windows shows unknown OpenMP types at link type if used in public symbols.
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)