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

Remove the need for #[cfg] in #[use_c_shim_if] #293

Merged
merged 1 commit into from
May 15, 2019

Commits on May 15, 2019

  1. Remove the need for #[cfg] in #[use_c_shim_if]

    This commit tweaks the implementation of the synthetic
    `#[use_c_shim_if]` attribute, renaming it to
    `#[maybe_use_optimized_c_shim]` in the process. This no longer requires
    specifying a `#[cfg]` clause indicating when the optimized intrinsic
    should be used, but rather this is inferred and printed from the build
    script.
    
    The build script will now print out appropriate `#[cfg]` directives for
    rustc to indicate what intrinsics it's compiling. This should remove the
    need for us to keep the build script and the source in sync, but rather
    the build script can simply take care of everything.
    alexcrichton committed May 15, 2019
    Configuration menu
    Copy the full SHA
    cf98161 View commit details
    Browse the repository at this point in the history