Download chips/openroad_flow_scripts/etc/setup_compiler_wrappers.sh from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/etc/setup_compiler_wrappers.sh
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/openroad_flow_scripts/etc/setup_compiler_wrappers.sh
-
curl -L -o setup_compiler_wrappers.sh https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/etc/setup_compiler_wrappers.sh
832 Bytes
| # setup_compiler_wrappers.sh | |
| # Creates compiler wrapper scripts for reproducible builds by overriding | |
| # __TIME__, __DATE__, and __TIMESTAMP__ macros with constant values. | |
| # This ensures Docker image builds are deterministic regardless of build time. | |
| set -e | |
| WRAPPER_DIR="/usr/local/bin/wrapped-cc" | |
| mkdir -p "$WRAPPER_DIR" | |
| # GCC wrapper | |
| cat > "$WRAPPER_DIR/gcc" << 'WRAPPER' | |
| #!/bin/sh | |
| exec /usr/bin/gcc -D__TIME__="\"0\"" -D__DATE__="\"0\"" -D__TIMESTAMP__="\"0\"" -Wno-builtin-macro-redefined "$@" | |
| WRAPPER | |
| chmod +x "$WRAPPER_DIR/gcc" | |
| # Symlink cc to gcc wrapper | |
| ln -sf "$WRAPPER_DIR/gcc" "$WRAPPER_DIR/cc" | |
| # G++ wrapper | |
| cat > "$WRAPPER_DIR/g++" << 'WRAPPER' | |
| #!/bin/sh | |
| exec /usr/bin/g++ -D__TIME__="\"0\"" -D__DATE__="\"0\"" -D__TIMESTAMP__="\"0\"" -Wno-builtin-macro-redefined "$@" | |
| WRAPPER | |
| chmod +x "$WRAPPER_DIR/g++" | |