Skip to content

Commit f5ba01f

Browse files
authored
Use pybind11-config to get pybind11 config info (#759)
1 parent b6652a4 commit f5ba01f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pybind_interface/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ QSIMLIB_HIP = ../qsimcirq/qsim_hip`python3-config --extension-suffix`
99
QSIMLIB_DECIDE = ../qsimcirq/qsim_decide`python3-config --extension-suffix`
1010

1111
# The flags for the compilation of the simd-specific Pybind11 interfaces
12-
PYBINDFLAGS_BASIC = -Wall -shared -std=c++17 -fPIC `python3 -m pybind11 --includes`
13-
PYBINDFLAGS_SSE = -msse4.1 -Wall -shared -std=c++17 -fPIC `python3 -m pybind11 --includes`
14-
PYBINDFLAGS_AVX2 = -mavx2 -mfma -Wall -shared -std=c++17 -fPIC `python3 -m pybind11 --includes`
15-
PYBINDFLAGS_AVX512 = -mavx512f -mbmi2 -Wall -shared -std=c++17 -fPIC `python3 -m pybind11 --includes`
12+
PYBINDFLAGS_BASIC = -Wall -shared -std=c++17 -fPIC `pybind11-config --includes`
13+
PYBINDFLAGS_SSE = -msse4.1 -Wall -shared -std=c++17 -fPIC `pybind11-config --includes`
14+
PYBINDFLAGS_AVX2 = -mavx2 -mfma -Wall -shared -std=c++17 -fPIC `pybind11-config --includes`
15+
PYBINDFLAGS_AVX512 = -mavx512f -mbmi2 -Wall -shared -std=c++17 -fPIC `pybind11-config --includes`
1616

1717
# The flags for the compilation of CUDA-specific Pybind11 interfaces
18-
PYBINDFLAGS_CUDA = -std=c++17 -x cu -Xcompiler "-Wall -shared -fPIC `python3 -m pybind11 --includes`"
18+
PYBINDFLAGS_CUDA = -std=c++17 -x cu -Xcompiler "-Wall -shared -fPIC `pybind11-config --includes`"
1919

2020
# The flags for the compilation of cuStateVec-specific Pybind11 interfaces
2121
PYBINDFLAGS_CUSTATEVEC = $(CUSTATEVECFLAGS) $(PYBINDFLAGS_CUDA)
2222

2323
# The flags for the compilation of HIP-specific Pybind11 interfaces
24-
PYBINDFLAGS_HIP = -std=c++17 -Wall -shared -fPIC `python3 -m pybind11 --includes`
24+
PYBINDFLAGS_HIP = -std=c++17 -Wall -shared -fPIC `pybind11-config --includes`
2525

2626
# Check for nvcc to decide compilation mode.
2727
ifeq ($(shell which $(NVCC)),)

0 commit comments

Comments
 (0)