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

Win32: allow generating funcs.h and help.c without posix tools #446

Merged
merged 2 commits into from
Nov 6, 2023

Commits on Oct 24, 2023

  1. windows: msvc: Makefile.wnm: allow generating funcs.h, help.c

    Previously the mscv Makefile.wnm didn't have rules to generate funcs.h
    and help.c, meaning that it could only be used to build release
    tarballs (which already have these files), but not git snapshots.
    
    Now we have a new independent rule "generated" (not part of "all"),
    which generates them. Because typical msvc setups do't have the tools
    which are used elsewhere to generate these files, this commit adds
    buildgen.c which, when compiled, can be used instead.
    
    It's not part of "all" because when cross compiling, e.g. an arm
    binary on Windows 64, buildgen.exe should be native and not arm,
    so this allows making "generated" with a native toolchain, and then
    "all" using the arm toolchain.
    avih committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    d3f577b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Windows: mingw: Makefile.wng: allow native funcs.h, help.c

    We already have buildgen.c which can be used to generate funcs.h and
    help.c without grep/sed/perl/sh/etc, which can be useful in mingw
    setups on Windows which don't bring the whole posix arsenal with them.
    
    The default is still the posix tools, but now adding WINGEN=1 will
    use buildgen.c instead of the posix tools.
    
    The compiler which is used with buildgen.c is the same compiler used
    at the rest of Makefile.wng, so it should be native (not cross build).
    avih committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    7c53519 View commit details
    Browse the repository at this point in the history