This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| vscode [2025/07/03 07:06] – zhangyk | vscode [2025/07/03 07:10] (current) – zhangyk | ||
|---|---|---|---|
| Line 85: | Line 85: | ||
| ## 3.4. Add a source file | ## 3.4. Add a source file | ||
| This is a script for use's convenience. It defines three variables to help VS Code to find the files. I put the script in `sysroot` | This is a script for use's convenience. It defines three variables to help VS Code to find the files. I put the script in `sysroot` | ||
| + | |||
| + | `sysroot.sh` | ||
| ```sh | ```sh | ||
| # Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf) | # Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf) | ||
| Line 92: | Line 94: | ||
| # Path to the patchelf binary on the remote host | # Path to the patchelf binary on the remote host | ||
| export VSCODE_SERVER_PATCHELF_PATH=/ | export VSCODE_SERVER_PATCHELF_PATH=/ | ||
| + | ``` | ||
| + | `sysroot.csh` | ||
| + | ```csh | ||
| + | # Path to the dynamic linker in the sysroot (used for --set-interpreter option with patchelf) | ||
| + | setenv VSCODE_SERVER_CUSTOM_GLIBC_LINKER / | ||
| + | # Path to the library locations in the sysroot (used as --set-rpath option with patchelf) | ||
| + | setenv VSCODE_SERVER_CUSTOM_GLIBC_PATH / | ||
| + | # Path to the patchelf binary on the remote host | ||
| + | setenv VSCODE_SERVER_PATCHELF_PATH / | ||
| ``` | ``` | ||
| Line 98: | Line 109: | ||
| chmod 755 sysroot | chmod 755 sysroot | ||
| vi sysroot/ | vi sysroot/ | ||
| + | vi sysroot/ | ||
| chmod 555 sysroot | chmod 555 sysroot | ||
| ``` | ``` | ||