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

compiler: enable caching for -femit-h #14606

Closed
wants to merge 1 commit into from

Commits on Feb 9, 2023

  1. compiler: enable caching for -femit-h

    As documented in ziglang#14416, when using `zig build-lib -femit-h` with
    caching enabled, if the generated header file is removed, it will not
    be generated again, unless the library source code is modified.
    
    For consistent builds with `zig build`, assume that the file generated
    by -femit using the default path is an artificact, and update
    src/main.zig to enable caching.
    
    Update the flushEmitH function in src/link/C.zig to use the
    zig_cache_artifact_directory instead of the incorrect
    local_cache_directory.
    
    Updates ziglang#14416
    perillo committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    9bdf36e View commit details
    Browse the repository at this point in the history