Skip to content

Commit

Permalink
Specifcy c11 in setup script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 4, 2024
1 parent 5cc8780 commit 6bea5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
dir cddlib/lib-src/
if ("${{ matrix.architecture }}" -eq "x86") { $platform = "Win32" } else { $platform = "x64" }
mkdir dist -Force
python -m build --wheel -C="--global-option=build_ext" -C="--global-option=-I$platform/Release/" -C="--global-option=-L$platform/Release/" -C="--global-option=-std:c11" .
python -m build --wheel -C="--global-option=build_ext" -C="--global-option=-I$platform/Release/" -C="--global-option=-L$platform/Release/" .
- name: Check files
run: twine check dist/*
- name: Upload wheel
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
Operating System :: OS Independent"""

import sys
import os.path

from setuptools import setup
from setuptools.extension import Extension
Expand Down Expand Up @@ -114,6 +113,7 @@
depends=cddgmp_headers,
define_macros=define_macros,
libraries=libraries,
extra_compile_args=["/std:c11"] if (sys.platform == 'win32') else [],
),
],
author="Matthias Troffaes",
Expand Down

0 comments on commit 6bea5e0

Please sign in to comment.