--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f5f8a224-2fec-487e-bd5b-1efff90a1ea1n%40googlegroups.com.
Thank you for the information!
I have attempted the suggested options, but unfortunately they did not work. It's possible that there are mistakes in my LD_PRELOAD binary. I did not observe any difference in the log content when using sandbox_debug. Is it expected to see the actual rustc commands? Perhaps I am missing something.
I need to programmatically extract these commands, so I am looking for the best option available.
SUBCOMMAND: # //rust/abc:abc [action 'Compiling Rust bin abc (13 files)', configuration: <bla bla>, execution platform: //tools/platforms:amd64](cd /home/brian/.cache/bazel/_bazel_brian/b648ee8a4cf3ea5f702d496242c79348/execroot/com_xyz && \exec env - \CARGO_CFG_TARGET_ARCH=aarch64 \CARGO_CFG_TARGET_OS=linux \CARGO_CRATE_NAME=abc \CARGO_MANIFEST_DIR='${pwd}/rust/abc' \CARGO_PKG_AUTHORS='' \CARGO_PKG_DESCRIPTION='' \CARGO_PKG_HOMEPAGE='' \CARGO_PKG_NAME=abc \CARGO_PKG_VERSION=0.0.0 \CARGO_PKG_VERSION_MAJOR=0 \CARGO_PKG_VERSION_MINOR=0 \CARGO_PKG_VERSION_PATCH=0 \CARGO_PKG_VERSION_PRE='' \OUT_DIR='${pwd}/bazel-out/k8-opt--cv2/bin/rust/abc/abc_build_script.out_dir' \SYSROOT=bazel-out/k8-opt--cv2/bin/external/rust_linux_x86_64__aarch64-unknown-linux-gnu__stable_tools/rust_toolchain \bazel-out/k8-opt-exec-589A3AC8/bin/external/rules_rust/util/process_wrapper/process_wrapper --env-file bazel-out/k8-opt--cv2/bin/rust/abc/abc_build_script.env --arg-file bazel-out/k8-opt--cv2/bin/external/raze__libc__0_2_139/libc_build_script.linksearchpaths --arg-file bazel-out/k8-opt--cv2/bin/external/raze__anyhow__1_0_65/anyhow_build_script.linksearchpaths --arg-file bazel-out/k8-opt--cv2/bin/external/raze__memchr__2_5_0/memchr_build_script.linksearchpaths --arg-file bazel-out/k8-opt--cv2/bin/rust/abc/abc_build_script.linksearchpaths --arg-file bazel-out/k8-opt--cv2/bin/rust/abc/abc_build_script.flags --arg-file bazel-out/k8-opt--cv2/bin/rust/abc/abc_build_script.linkflags --subst 'pwd=${pwd}' --subst-multipwd true -- bazel-out/k8-opt--cv2/bin/external/rust_linux_x86_64__aarch64-unknown-linux-gnu__stable_tools/rust_toolchain/bin/rustc rust/abc/src/abc_main.rs '--crate-name=abc' '--crate-type=bin' '--error-format=human' '--out-dir=bazel-out/k8-opt--cv2/bin/rust/abc' '--codegen=opt-level=3' '--codegen=debuginfo=0' '--remap-path-prefix=${pwd}=' '--emit=dep-info,link' '--color=always' '--target=aarch64-unknown-linux-gnu' -L bazel-out/k8-opt--cv2/bin/external/rust_linux_x86_64__aarch64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/aarch64-unknown-linux-gnu/lib '--edition=2021' '--codegen=linker=external/llvm_toolchain/bin/cc_wrapper.sh' '--extern=cfg_if=bazel-out/k8-opt--cv2/bin/external/raze__cfg_if__1_0_0/libcfg_if-1959545905.rlib' '--extern=clap=bazel-out/k8-opt--cv2/bin/external/raze__clap__4_0_29/libclap-3778812063.rlib' '--extern=env_logger=bazel-out/k8-opt--cv2/bin/external/raze__env_logger__0_9_1/libenv_logger-1536438461.rlib' '--extern=ftrace=bazel-out/k8-opt--cv2/bin/rust/ftrace/libftrace-2099929474.rlib' '-Ldependency=bazel-out/k8-opt--cv2/bin/external/raze__zerocopy__0_6_1' '-Ldependency=bazel-out/k8-opt-exec-589A3AC8/bin/external/raze__extend__1_1_2' '-Cforce-unwind-tables=yes')