Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jun 20, 2024
1 parent ef25b34 commit f4c32ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
- python-version: '3.10'
compiler: microsoft
os: windows
- python-version: '3.11'
compiler: microsoft
os: windows
- python-version: '3.12'
compiler: microsoft
os: windows

runs-on: ${{ matrix.os }}-latest
env:
Expand All @@ -58,18 +64,17 @@ jobs:
run: CC=${COMPILER} LDSHARED="${COMPILER} -shared" python setup.py build sdist
shell: bash

- if: ${{ matrix.os == 'windows' }}
name: debug1
run: |
ls -l ./build/temp.win-amd64-cpython-310/Release/python/
shell: bash

- if: ${{ matrix.os == 'windows' }}
name: debug2
run: |
$dumpbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\dumpbin.exe'
& $dumpbin /exports .\build\temp.win-amd64-cpython-310\Release\python\_rtpsynth.cp310-win_amd64.lib
#shell: cmd
# - if: ${{ matrix.os == 'windows' }} && ${{ matrix.python-version == '3.10' }}
# name: debug1
# run: |
# ls -l ./build/temp.win-amd64-cpython-310/Release/python/
# shell: bash

# - if: ${{ matrix.os == 'windows' }} && ${{ matrix.python-version == '3.10' }}
# name: debug2
# run: |
# $dumpbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\dumpbin.exe'
# & $dumpbin /exports .\build\temp.win-amd64-cpython-310\Release\python\_rtpsynth.cp310-win_amd64.lib

- name: install
run: pip install dist/[Rr]tp*.gz
Expand Down
2 changes: 1 addition & 1 deletion src/rtpjbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#if !defined(_WIN32) && !defined(_WIN64)
#define x_unlikely(x) (__builtin_expect((x), 0), (x))
#else
#define x_unlikely(x) (x)
#define x_unlikely(x) (__assume(!(x)), (x))
#endif

#if defined(_WIN32) || defined(_WIN64)
Expand Down

0 comments on commit f4c32ca

Please sign in to comment.