aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.hxx
AgeCommit message (Collapse)AuthorFilesLines
2019-04-09Add dry-run support to test rulesBoris Kolpackov1-0/+6
2019-01-16Update copyright yearKaren Arutyunov1-1/+1
2018-11-05Only search for external tools (compilers, linkers, etc) in PATHBoris Kolpackov1-1/+10
Specifically, omit the current executable's directory on Windows since there is no reason for them to be found there automagically and this can lead to surprising behavior (for example, our MinGW GCC being used instead of the user's even though the user's is in PATH before ours).
2018-11-02Fix typoBoris Kolpackov1-1/+1
2018-10-26Add config.{c,cxx}.{id,version,target} configuration variablesBoris Kolpackov1-1/+3
These variables allow overriding guessed compiler id/version/target, for example, in case of mis-guesses or when working with compilers that don't report their base (e.g., GCC, Clang) with -v/--version (common in the embedded space).
2018-08-21Unset CL and _CL_ environment variables when detecting MSVCBoris Kolpackov1-12/+12
2018-07-30Make project variable to be of project_name typeKaren Arutyunov1-7/+9
2018-06-20Add $process.run() and $process.run_regex() functionsBoris Kolpackov1-4/+8
$process.run(<prog>[ <args>...]) Return trimmed stdout. $process.run_regex(<prog>[ <args>...], <pat> [, <fmt>]) Return stdout lines matched and optionally processed with regex. Each line of stdout (including the customary trailing blank) is matched (as a whole) against <pat> and, if successful, returned, optionally processed with <fmt>, as an element of a list.
2018-06-15Use portable environment variable manipulation functionsKaren Arutyunov1-2/+5
2018-05-19Update copyright yearKaren Arutyunov1-1/+1
2018-05-14Adjust to libbutl changesBoris Kolpackov1-1/+1
2018-04-28Move trim(), next_word() to libbutlBoris Kolpackov1-34/+3
2018-04-26Implement run buildfile directiveBoris Kolpackov1-11/+30
Now we can do: run echo 'foo = bar' print $foo
2018-03-21Strip out_root when hashing linker input pathsBoris Kolpackov1-0/+14
This allows moving out_root of simple projects (no rpath, -I$out_root, or similar) without causing a re-link which we use for testing.
2018-01-16Remove unnecessary qualificationBoris Kolpackov1-1/+1
2018-01-08Implement compiler_info cachingBoris Kolpackov1-10/+15
2018-01-08Complete runtime/stdlib detectionBoris Kolpackov1-32/+51
2018-01-05Extend find_option_prefix() to return optionBoris Kolpackov1-11/+14
2017-12-16Improve process execution diagnostics by reusing run_*() APIBoris Kolpackov1-23/+111
2017-12-11Fix Clang on Windows C runtime library linking logicBoris Kolpackov1-1/+1
2017-12-09Fix git commit id calculationBoris Kolpackov1-4/+7
2017-12-04Recognize empty cc.patternBoris Kolpackov1-2/+2
2017-11-24Add extra library search paths as -L optionsBoris Kolpackov1-0/+17
2017-11-21Move eof() utility to libbutlBoris Kolpackov1-0/+2
2017-10-13Add throw_system_error to utilityBoris Kolpackov1-0/+1
2017-10-03Adapt to modularization of libbutlKaren Arutyunov1-2/+2
2017-08-20Adjust bootstrap not to need pre-generated version.hxxBoris Kolpackov1-1/+12
2017-08-06Filter out warning as error options during preprocessingBoris Kolpackov1-10/+16
2017-08-06Print progress to terminal by defaultKaren Arutyunov1-0/+2
2017-06-16Clean up module-related diagnosticsBoris Kolpackov1-0/+5
2017-06-12Add workaround for Clang module import during preprocessingBoris Kolpackov1-0/+9
2017-05-01Add hxx extension for headersKaren Arutyunov1-0/+436