Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish header with toolchain versions #487

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 5, 2024

  1. Publish header with toolchain versions

    This change is an attempt to resolve [wasi-libc#490] but at the wasi-sdk
    level. It adds a `version.h` header file to
    `share/wasi-sysroot/include/<target>/wasi` so that users have
    programmatic access to some extra information to output better error
    messages, e.g. This `version.h` looks something like:
    
      ```c
      // Generated by wasi-sdk's `version.py` script.
      #ifndef VERSION_H
      #define VERSION_H
    
      #define WASI_SDK_VERSION "24.6g754aec3d6f58+m"
      #define WASI_LIBC_VERSION "b9ef79d7dbd4"
    
      #endif
      ```
    
    It _is_ a bit strange that we're adding to wasi-libc's include files
    from wasi-sdk (it would be cleaner if it happened in wasi-libc directly)
    but wasi-sdk actually has the information available.
    
    [wasi-libc#490]: WebAssembly/wasi-libc#490
    abrown committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    aa33732 View commit details
    Browse the repository at this point in the history