Skip to content

Commit 03e480d

Browse files
committed
Enable sessions in free-threading wheels
1 parent 6421323 commit 03e480d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.ci/wheels/before_all_linux_nogil.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ cd ..
1010

1111
# Build QuantLib
1212
cd QuantLib-1.*/
13-
./configure --disable-static --enable-thread-safe-observer-pattern --disable-test-suite --enable-skip-examples --enable-unity-build CXXFLAGS="${CXXQLFLAGS}"
13+
./configure --disable-static --enable-thread-safe-observer-pattern --enable-sessions --disable-test-suite --enable-skip-examples --enable-unity-build CXXFLAGS="${CXXQLFLAGS}"
1414
make -j 4 install
1515
cd ..

.ci/wheels/userconfig_nogil.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
per-thread.
7474
*/
7575
#ifndef QL_ENABLE_SESSIONS
76-
//# define QL_ENABLE_SESSIONS
76+
# define QL_ENABLE_SESSIONS
7777
#endif
7878

7979
/* If defined, a thread-safe (but less performant) version of the

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
run: |
162162
tar xfz QuantLib-${{ needs.detect-version.outputs.version }}.tar.gz
163163
cd QuantLib-${{ needs.detect-version.outputs.version }}/
164-
./configure --disable-shared --with-boost-include=`brew --prefix`/include --enable-unity-build --enable-thread-safe-observer-pattern --disable-test-suite --enable-skip-examples
164+
./configure --disable-shared --with-boost-include=`brew --prefix`/include --enable-unity-build --enable-thread-safe-observer-pattern --enable-sessions --disable-test-suite --enable-skip-examples
165165
make -j3 CXXFLAGS="-std=c++17 -g0 -O3 -fno-common -dynamic -DNDEBUG -fwrapv" LDFLAGS="-fno-common -dynamic -DNDEBUG -fwrapv"
166166
sudo make install
167167
- name: Unpack QuantLib-SWIG

0 commit comments

Comments
 (0)