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 MSVC builds / remove -W* flags #1972

Merged
merged 1 commit into from
Feb 1, 2023
Merged

Fix MSVC builds / remove -W* flags #1972

merged 1 commit into from
Feb 1, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jan 31, 2023

Removes -W compiler flags on Windows, which aren't understood by MSVC.

Fixes cl : Command line error D8021 : invalid numeric argument '/Werror' (which for some reason currently only occurs on branch adjoint_event 🤷‍♂️)

See also https://learn.microsoft.com/en-us/cpp/build/reference/wx-treat-linker-warnings-as-errors?view=msvc-170

Removes `-W` compiler flags on Windows, which aren't understood by MSVC.

Fixes `cl : Command line error D8021 : invalid numeric argument '/Werror'` (which for some reason currently only occurs on branch `adjoint_event` 🤷‍♂️)

See also https://learn.microsoft.com/en-us/cpp/build/reference/wx-treat-linker-warnings-as-errors?view=msvc-170
@dweindl dweindl requested a review from a team as a code owner January 31, 2023 18:41
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #1972 (aa68fee) into develop (77c5339) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1972   +/-   ##
========================================
  Coverage    75.98%   75.98%           
========================================
  Files           76       76           
  Lines        12984    12986    +2     
========================================
+ Hits          9866     9868    +2     
  Misses        3118     3118           
Flag Coverage Δ
cpp 73.17% <ø> (+0.02%) ⬆️
petab 59.69% <0.00%> (-0.03%) ⬇️
python 68.94% <0.00%> (-0.04%) ⬇️
sbmlsuite ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/sdist/amici/setuptools.py 58.49% <0.00%> (-1.13%) ⬇️
src/sundials_matrix_wrapper.cpp 80.61% <0.00%> (+0.40%) ⬆️

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

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

🤷

@dweindl dweindl merged commit 96e48f7 into develop Feb 1, 2023
@dweindl dweindl deleted the fix_msvc branch February 1, 2023 08:20
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.

2 participants