Skip to content

Instantly share code, notes, and snippets.

View denniskb's full-sized avatar

Dennis Bautembach denniskb

View GitHub Profile
@J-Vernay
J-Vernay / native_build_proposal.md
Last active November 24, 2020 11:43
(DRAFT) <native_build> proposal

(DRAFT) Proposal for <native_build> in C++23

Abstract

This document proposes an extension of the C++ standard library. This is an informal draft for a proposal: its aim is to get feedback from other C++ users and implementers. Basically, this proposal provides a starting point to use C++ as a basis for C++ build systems. For this, it provides the minimal C++ header <native_build> which is implemented by the compiler maintainers. It defines new types (which are basically strong-typed alias of std::filesystem::path), a new templated function build(...) for building the project, and run(...) for running an executable. It has also a permissive requirement: programs using `` are only required to work on the machine