Skip to content

Commit

Permalink
Fix zfp for Visual Studio 2022 17.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jul 8, 2024
1 parent ace5e75 commit f6be8aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,9 @@ def get_sperr_clib(field=None):
def get_zfp_clib(field=None):
"""ZFP static lib build config"""
cflags = ['-O3', '-ffast-math', '-std=c99', '-fopenmp']
cflags += ['/Ox', '/fp:fast', '/openmp']
# Use /Ob1 to fix ZFP test failing with Visual Studio 2022: MSVC 14.40.33807
# See https://github.com/LLNL/zfp/issues/222
cflags += ['/Ob1', '/fp:fast', '/openmp']

zfp_dir = "src/zfp"

Expand Down

0 comments on commit f6be8aa

Please sign in to comment.