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

Build.zig rename orgy. Renames FileSource to LazyPath and others #16446

Merged
merged 10 commits into from
Jul 31, 2023

Commits on Jul 30, 2023

  1. Build.zig rename orgy (aka: ziglang#16353). Renames FileSource to Laz…

    …yPath and removes functions that take literal paths instead of LazyPath.
    Felix (xq) Queißner authored and andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    ce95a3b View commit details
    Browse the repository at this point in the history
  2. Introduces Compile.getEmittedX() functions, drops Compile.emit_X. R…

    …esolves ziglang#14971
    Felix (xq) Queißner authored and andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    5c01818 View commit details
    Browse the repository at this point in the history
  3. Introduces Compile.forceBuild() and Compile.forceEmit(…)

    Felix "xq" Queißner authored and andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    35d0a49 View commit details
    Browse the repository at this point in the history
  4. Rebase + two fixes.

    Felix "xq" Queißner authored and andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    ae11fba View commit details
    Browse the repository at this point in the history
  5. Tries to fix Windows DLL linking.

    Felix "xq" Queißner authored and andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    f8386de View commit details
    Browse the repository at this point in the history
  6. build system: follow-up enhancements regarding LazyPath

    * introduce LazyPath.cwd_relative variant and use it for --zig-lib-dir. closes ziglang#12685
    * move overrideZigLibDir and setMainPkgPath to options fields set once
      and then never mutated.
    * avoid introducing Build/util.zig
    * use doc comments for deprecation notices so that they show up in
      generated documentation.
    * introduce InstallArtifact.Options, accept it as a parameter to
      addInstallArtifact, and move override_dest_dir into it. Instead of
      configuring the installation via Compile step, configure the
      installation via the InstallArtifact step. In retrospect this is
      obvious.
    * remove calls to pushInstalledFile in InstallArtifact. See ziglang#14943
    * rewrite InstallArtifact to not incorrectly observe whether a Compile
      step has any generated outputs. InstallArtifact is meant to trigger
      output generation.
    * fix child process evaluation code handling of `-fno-emit-bin`.
    * don't store out_h_filename, out_ll_filename, etc., pointlessly. these
      are all just simple extensions appended to the root name.
    * make emit_directory optional. It's possible to have nothing outputted,
      for example, if you're just type-checking.
    * avoid passing -femit-foo/-fno-emit-foo when it is the default
    * rename ConfigHeader.getTemplate to getOutput
    * deprecate addOptionArtifact
    * update the random number seed of Options step caching.
    * avoid using `inline for` pointlessly
    * avoid using `override_Dest_dir` pointlessly
    * avoid emitting an executable pointlessly in test cases
    
    Removes forceBuild and forceEmit. Let's consider these additions separately.
    Nearly all of the usage sites were suspicious.
    andrewrk committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    38840e2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6393928 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. std.Build.Step.InstallArtifact: disable emit-h

    This branch was not intended to introduce new test coverage on the
    emit-h feature.
    
    See ziglang#9698
    andrewrk committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    bdbd617 View commit details
    Browse the repository at this point in the history
  2. std.Build.LazyPath: fix resolution of cwd_relative

    The callsites of getPath rely on the result being absolute so that they
    can pass the path to a child process with the cwd set to the build root.
    andrewrk committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    25a9487 View commit details
    Browse the repository at this point in the history
  3. move docgen.zig to tools/

    andrewrk committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    acbb641 View commit details
    Browse the repository at this point in the history