aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-10-18Add ability to specify "compiler mode" options as part of config.{c,cxx}Boris Kolpackov1-6/+10
Such options are (normally) not overridden by buildfiles and are passed last (after cc.coptions and {c,cxx}.coptions) in the resulting command lines. They are also cross-hinted between config.c and config.cxx. For example: $ b config.cxx="g++ -m64"
2019-10-16Try to find MSVC installation for absolute cl.exe pathsBoris Kolpackov1-1/+9
Without this extra logic recursive invocation of the build system (e.g., in tests) will fail to obtain the full environment.
2019-10-14Implement MSVC installation discovery for version 15 (2017) and laterKaren Arutyunov1-3/+3
In particular, this removes the requirement to build from the Visual Studio command prompt. Note that since MSVC compiler binaries are target-specific (i.e., there are no -m32/-m64 options nor something like /MACHINE), in this case we default to a 64-bit build (a 32-bit build can still be achieved by running from a suitable command prompt). Finally, this mechanism is also used to find Clang bundled with MSVC.
2019-10-08Redo bin pattern as PATH-like search paths rather than fallback directoryBoris Kolpackov1-10/+12
Also, unlike the fallback directory, the search paths are searched first rather than last.
2019-10-01Adapt to renaming butl::casecmp() to icasecmp()Karen Arutyunov1-8/+8
2019-08-28Redo build_installed without requiring linking whole archiveBoris Kolpackov1-2/+0
2019-08-26Implement auto-import of development build2 buildBoris Kolpackov1-0/+2
2019-08-23Introduce notion of build contextBoris Kolpackov1-5/+3
All non-const global state is now in class context and we can now have multiple independent builds going on at the same time.
2019-08-21Cleanup context.hxx and its usageBoris Kolpackov1-0/+1
2019-08-21Implement dynamic loading of build system modulesBoris Kolpackov1-0/+5
2019-08-17Add support for default options filesKaren Arutyunov1-2/+8
2019-08-07Improve deadlock diagnostics (suppress stack trace, reword)Boris Kolpackov1-3/+6
2019-07-01Split build system into library and driverBoris Kolpackov1-0/+517