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

rust: modify Rust crate to support Windows #41

Merged
merged 2 commits into from
Feb 9, 2022

Commits on Feb 9, 2022

  1. rust: modify Rust crate to support Windows

    This change has several parts: first, it splits out ITT bindings by OS.
    The ITT bindings have OS-specific variables (`ITT_OS`, `ITT_PLATFORM`)
    that encode which OS the bindings are for. This change creates separate
    binding files for each OS. The JIT bindings are also not OS-agnostic and
    are split out to the same directories. This change also removes libc
    constants present in the generated bindings and ignores Windows carriage
    returns during testing. Now that the bindings are generated correctly
    for each OS, this change builds the C libraries and links to them in the
    `build.rs` script on Windows. As a side effect, this removes the
    `force_32` feature--it was not applying the `-m32` flag correctly during
    compilation--but the feature can be re-added if needed in the future.
    abrown committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    53d6584 View commit details
    Browse the repository at this point in the history
  2. ci: add CI task to check the Rust crate

    This change builds the Rust crate and runs its tests on all supported
    OS-es: Linux, macOS, Windows.
    abrown committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    5182787 View commit details
    Browse the repository at this point in the history