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

added missing include guards in order to support easy amalgamation #2385

Merged
merged 1 commit into from
Feb 21, 2024

Commits on Feb 18, 2024

  1. added missing include guards

    These changes make it easy to build an amalgamated `ninja.cc` that
    can be used to bootstrap ninja with just a working C++ compiler, without
    the need for any third-party tools like `cmake` or `python`.
    
    *nix
    
    c++ -O2 src/ninja_amalgamated.cc -o ninja
    
    osx-cross
    
    x86_64-apple-darwin19-c++ -O2 src/one.cc -o ninja
    
    mingw
    
    x86_64-w64-mingw32-c++ -O2 src/ninja_amalgamated.cc -o ninja.exe
    
    msvc
    
    cl.exe /nologo /Ox /GR- src\ninja_amalgamated.cc /out:ninja.exe
    icebreaker committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    9a4f715 View commit details
    Browse the repository at this point in the history