Skip to content

Commit

Permalink
Fix compilation with GCC>=13 (#187)
Browse files Browse the repository at this point in the history
* Fix compilation with GCC>=13

* switch to ruff check

* fix change logs
  • Loading branch information
xadupre authored Jul 15, 2024
1 parent d836302 commit 87d7664
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOGS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Change Logs
0.3.0
+++++

* :pr:`187`: Fix compilation with GCC>=13 #187
* :pr:`185`: adds custom operator MulMulSigmoid on CUDA
* :pr:`184`: use onnxruntime==1.18.0 as default
* :pr:`181`: adds MaskedScatterNDOfShape custom operator
Expand Down
2 changes: 1 addition & 1 deletion _cmake/clang_format.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear
echo "--ruff--"
ruff .
ruff check .
echo "--cython-lint--"
cython-lint .
echo "--clang-format--"
Expand Down
4 changes: 4 additions & 0 deletions _cmake/constants.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ if(APPLE)
set(DEFAULT_OSX_DEPLOYMENT_TARGET "10.15")
endif()

if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include stdint.h")
endif()

#
# C++ 14 or C++ 17 or...
#
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- script: pip install -r requirements-dev.txt
displayName: 'Install Requirements dev'
- script: |
ruff .
ruff check .
displayName: 'Ruff'
- script: |
black --diff .
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- script: pip install -r requirements-dev.txt
displayName: 'Install Requirements dev'
- script: |
ruff .
ruff check .
displayName: 'Ruff'
- script: |
black --diff .
Expand Down

0 comments on commit 87d7664

Please sign in to comment.