Cargo build path environment variable that can be used by the linker

Is there an environment variable set by cargo that contains the path of the target folder where artefacts are being built? like ./target/wasm32-unknown-emscripten/debug

I need to use that variable to set the output inside the script that I'm calling as the linker configured in my cargo.toml config file

The linker should get an argument for each path it should search for libraries.

The best I came up so far is the following.. but it's not really how I would like to tackle it

$CARGO_MANIFEST_DIR/target/wasm32-unknown-emscripten/debug/main.html