Skip to content

Commit ce68189

Browse files
committed
unix: define a more proper variable for disambiguating build target
The last one was too specific.
1 parent d81161a commit ce68189

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cpython-unix/build-openssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ "${CC}" = "musl-clang" ]; then
2323
EXTRA_FLAGS="${EXTRA_FLAGS} no-async -DOPENSSL_NO_ASYNC -D__STDC_NO_ATOMICS__=1 no-engine -DOPENSSL_NO_SECURE_MEMORY"
2424
fi
2525

26-
if [ "${TARGET_TRIPLE}" = "x86_64-apple-darwin18.7.0" ]; then
26+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
2727
OPENSSL_TARGET=darwin64-x86_64-cc
2828
else
2929
OPENSSL_TARGET=linux-x86_64

cpython-unix/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646

4747
def add_target_env(env, platform, build_env):
48+
env["PYBUILD_PLATFORM"] = platform
4849
env["NUM_CPUS"] = "%d" % multiprocessing.cpu_count()
4950
env["TOOLS_PATH"] = build_env.tools_path
5051

0 commit comments

Comments
 (0)