configs  Check-in [c51ad6649c]

Overview
Comment:zshrc: Use -isysroot for `cross ios`
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: c51ad6649cbc320cd384636107e53ea7a8cbaf495660a759351abb9e89d08a76
User & Date: js on 2022-04-24 11:20:13
Other Links: manifest | tags
Context
2022-04-24
11:20
zshrc: Use -isysroot for `cross ios` Leaf check-in: c51ad6649c user: js tags: trunk
2022-04-20
13:29
mpv.conf: Save position check-in: 31698c19f4 user: js tags: trunk
Changes

Modified zshrc from [2119c0f4e1] to [6ec8f1545b].

480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
			local sdk="$(xcrun --show-sdk-path --sdk $sdk_type)"
			local archs="${@:2}"

			if [ ${(w)#archs} = 0 ]; then
				archs="$default_archs"
			fi

			export CC="clang --sysroot $sdk"
			export CPP="clang -E --sysroot $sdk"
			export CXX="clang++ --sysroot $sdk"
			export CXXPP="clang++ -E -=sysroot $sdk"

			for arch in $=archs; do
				export CC="$CC -arch $arch"
				export CXX="$CXX -arch $arch"
			done
			export CPP="$CPP -arch $archs[(w)1]"
			export CXXPP="$CXXPP -arch $archs[(w)1]"







|
|
|
|







480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
			local sdk="$(xcrun --show-sdk-path --sdk $sdk_type)"
			local archs="${@:2}"

			if [ ${(w)#archs} = 0 ]; then
				archs="$default_archs"
			fi

			export CC="clang -isysroot $sdk"
			export CPP="clang -E -isysroot $sdk"
			export CXX="clang++ -isysroot $sdk"
			export CXXPP="clang++ -E -isysroot $sdk"

			for arch in $=archs; do
				export CC="$CC -arch $arch"
				export CXX="$CXX -arch $arch"
			done
			export CPP="$CPP -arch $archs[(w)1]"
			export CXXPP="$CXXPP -arch $archs[(w)1]"