diff options
| author | YDBot <[email protected]> | 2026-07-02 18:29:58 +0000 |
|---|---|---|
| committer | YDBot <[email protected]> | 2026-07-02 18:29:58 +0000 |
| commit | a52ffb856a584a5099e37b9c060da3ba4a3db5fb (patch) | |
| tree | 59c7f09bdc9e52d11ce6ddf8b6fabdfe1e73a8d6 /contrib/python/cryptography | |
| parent | 6faa15e1fbe202f0fddb7c1ffe9886dc81a0425f (diff) | |
| parent | d5cfc51dd97284c59104c50bb156d1a8d9a09dac (diff) | |
Merge pull request #45225 from ydb-platform/merge-rightlib-260701-1735
Diffstat (limited to 'contrib/python/cryptography')
| -rw-r--r-- | contrib/python/cryptography/next/rust/.yandex_meta/build.ym | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/contrib/python/cryptography/next/rust/.yandex_meta/build.ym b/contrib/python/cryptography/next/rust/.yandex_meta/build.ym index 27c37abb849..1a9f1137767 100644 --- a/contrib/python/cryptography/next/rust/.yandex_meta/build.ym +++ b/contrib/python/cryptography/next/rust/.yandex_meta/build.ym @@ -26,6 +26,7 @@ _rust _openssl {% endblock %} +{% block rust_version %}nightly-2026-06-04{% endblock %} {% block current_version %}41.0.6{% endblock %} {% block current_url %}https://github.com/pyca/cryptography/archive/refs/tags/{{self.version().strip()}}.tar.gz{% endblock %} @@ -46,17 +47,21 @@ export CC_aarch64_apple_darwin=mac-target-cc-arm export DEP_OPENSSL_INCLUDE={{arcadia_root}}/contrib/libs/openssl/include export PYO3_CROSS_PYTHON_VERSION=3.12 +export RUSTFLAGS="${RUSTFLAGS:-} -Cembed-bitcode=no" rm -rf docs vectors tests cd src/rust {{super()}} +find ${BUILD} -name '*.a' -type f | while read l; do + echo "_rust_eh_personality {{self.mod_name().strip()}}__rust_eh_personality" >> prog + llvm-objcopy --redefine-syms=prog ${l} + rm prog +done {% for p in self.msan_platforms().strip().split('\n') %} export CC_{{p.replace('-', '_')}}=target-cc-msan {% endfor %} -export RUSTFLAGS="-Zsanitizer=memory -Zsanitizer-memory-track-origins=2 -Ctarget-feature=-crt-static" - -export RUSTC_BOOTSTRAP=1 +export RUSTFLAGS="${RUSTFLAGS:-} -Zsanitizer=memory -Zsanitizer-memory-track-origins=2 -Ctarget-feature=-crt-static -Cunsafe-allow-abi-mismatch=sanitizer -Ccodegen-units=1" {% for arch in self.msan_platforms().strip().split('\n') %} LD_PRELOAD=${BIN}/getrandom.so cargo {{self.cargo_flags().strip()}} build {{self.cargo_build_flags().strip()}} --release --target {{arch}} {{self.binary_type().strip()}} --target-dir ${BUILD}-msan \ @@ -69,6 +74,7 @@ find ${BUILD}-msan -name '*.a' -type f | while read l; do llvm-nm --extern-only --defined-only -A ${l} | sed -e 's|.* ||' | grep -v 'PyInit_' | sort | while read s; do echo "${s} {{self.mod_name().strip()}}_${s}" >> prog done + echo "_rust_eh_personality {{self.mod_name().strip()}}__rust_eh_personality" >> prog llvm-objcopy --redefine-syms=prog ${l} rm prog done |
