Skip to content

Commit db2413b

Browse files
committed
Add build instructions
1 parent c708450 commit db2413b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/ctypes_test/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# By default, `make` produces a PYD for the current OS/processor.
2+
# To build a specific PYD, the full command is:
3+
# * _ctypes_test_darwin_arm64.pyd: make OS=darwin MACHINE=arm64
4+
# * _ctypes_test_darwin_x86_64.pyd: make OS=darwin MACHINE=x86_64
5+
# * _ctypes_test_linux_aarch64.pyd: make OS=linux MACHINE=aarch64
6+
# * _ctypes_test_linux_x86_64.pyd: make OS=linux MACHINE=x86_64 BITS=64
7+
# * _ctypes_test_linux_i686.pyd: make OS=linux MACHINE=i686 BITS=32
8+
# Parameter OS=... may be skipped if it is the same as the host OS.
9+
# For Windows builds, use `_ctypes_test.vcxproj` or `_ctypes_test.sln` with MSBuild:
10+
# * _ctypes_test_win64.pyd: msbuild -p:Configuration=Release -p:Platform=x64
11+
# * _ctypes_test_win32.pyd: msbuild -p:Configuration=Release -p:Platform=x86
12+
113
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
214
MACHINE ?= $(shell uname -m)
315
BITS ?= 64

0 commit comments

Comments
 (0)