GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — registry-stack/scripts/cargo-runtime-library-path.sh at main · registrystack/registry-stack Expand file tree/ Copy pathcargo-runtime-library-path.shMore file actions executable file ·52 lines (47 loc) · 1.61 KB / Copy pathcargo-runtime-library-path.shFile metadata and controlsexecutable file ·52 lines (47 loc) · 1.61 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 #!/bin/sh # Prepare direct Cargo-built binary execution on macOS. AWS-LC FIPS is a # dynamic library there, while Cargo only supplies its build directory to # processes Cargo launches itself. registry_cargo_build() { registry_stack_root=$1 shift if [ "$(uname -s)" != Darwin ]; then cargo build "$@" return fi registry_cargo_messages=$(mktemp "${TMPDIR:-/tmp}/registry-cargo-messages.XXXXXX") || return 1 if cargo build "$@" --message-format=json-render-diagnostics >"$registry_cargo_messages"; then : else registry_cargo_status=$? python3 "$registry_stack_root/scripts/cargo_runtime_library_path.py" \ --render-diagnostics "$registry_cargo_messages" >&2 || : rm -f -- "$registry_cargo_messages" return "$registry_cargo_status" fi registry_fips_library_path=$( python3 "$registry_stack_root/scripts/cargo_runtime_library_path.py" \ "$registry_cargo_messages" ) || { registry_cargo_status=$? rm -f -- "$registry_cargo_messages" return "$registry_cargo_status" } rm -f -- "$registry_cargo_messages" case "$registry_fips_library_path" in *:*) echo "AWS-LC FIPS runtime directory cannot contain a colon: $registry_fips_library_path" >&2 return 1 ;; esac DYLD_FALLBACK_LIBRARY_PATH="$registry_fips_library_path${DYLD_FALLBACK_LIBRARY_PATH:+:$DYLD_FALLBACK_LIBRARY_PATH}" export DYLD_FALLBACK_LIBRARY_PATH REGISTRY_CARGO_RUNTIME_LIBRARY_PATH="$registry_fips_library_path" export REGISTRY_CARGO_RUNTIME_LIBRARY_PATH } registry_prepare_cargo_runtime() { if [ "$(uname -s)" != Darwin ]; then return 0 fi registry_cargo_build "$@" } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |