aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* C++-ify common_dir_prefix_lengthJoel Rosdahl2020-02-236-39/+51
|
* Implement Util::normalize_absolute_pathJoel Rosdahl2020-02-233-0/+99
| | | | | | Normalization here means syntactically removing redundant slashes and resolving "." and ".." parts. The algorithm does however *not* follow symlinks, so the result may not actually resolve to `path`.
* Make Util::is_absolute_path work with MSYS/Cygwin/POSIX win32 pathsJoel Rosdahl2020-02-232-6/+7
|
* C++-ify is_absolute_pathJoel Rosdahl2020-02-238-19/+37
|
* Sort test casesJoel Rosdahl2020-02-231-58/+58
|
* Move basedir tests to the basedir test suiteJoel Rosdahl2020-02-232-48/+48
|
* Add pch test suite probe for seemingly broken compiler supportJoel Rosdahl2020-02-221-2/+9
| | | | This fixes a problem mentioned by Orion Poplawski in a comment to PR #217.
* Const-ify Context& parameters where possibleJoel Rosdahl2020-02-221-5/+5
|
* Simplify setting of ctx.args_info.profile_dir default valueJoel Rosdahl2020-02-221-6/+4
|
* Convert stats_update(x) + failed() to failed(x) in hash_*command*()Joel Rosdahl2020-02-224-38/+26
|
* Use find_executable_in_path to find executable in hash_command_outputJoel Rosdahl2020-02-223-6/+10
| | | | | | This makes the Windows version behave similar to the non-Windows version: just search in $PATH, not potentially in the path specified by the “path” configuration setting.
* Make failure to run compiler_check command a soft errorJoel Rosdahl2020-02-222-5/+3
| | | | | | No need to make a failure when running the compiler check fatal since other misconfigured settings can have a similar effect without resulting in fatal errors.
* Rename cc_process_args to process_argsJoel Rosdahl2020-02-223-44/+44
|
* Convert stats_update(x) + failed() to failed(x) in cc_process_argsJoel Rosdahl2020-02-223-125/+95
|
* Convert most stats_update(x) + failed() to failed(x)Joel Rosdahl2020-02-221-80/+52
|
* Don’t increment STATS_COMPILER on fatal errorJoel Rosdahl2020-02-222-2/+4
| | | | Statistics counters are otherwise never incremented on fatal errors.
* Make it possible to run failed() and not execute the real compilerJoel Rosdahl2020-02-222-15/+38
| | | | | This removes one of the last x_exit calls deeper into the main ccache code paths.
* Remove leftover cc_reset declarationJoel Rosdahl2020-02-221-1/+0
|
* Merge pull request #543 from totph/ctx5Joel Rosdahl2020-02-2218-426/+307
|\ | | | | Final Globals -> Context moves
| * Turn lock_staleness_limit into a constantThomas Otto2020-02-173-58/+6
| | | | | | | | Remove now-empty legacy_globals.cpp/hpp.
| * Context: move countersThomas Otto2020-02-177-98/+97
| |
| * Context: move ignore_headers_len, remove cc_reset()Thomas Otto2020-02-178-40/+16
| |
| * Context: move included_pch_file and convert to std::stringThomas Otto2020-02-174-16/+15
| |
| * Context: move guessed_compilerThomas Otto2020-02-175-24/+26
| |
| * Convert guessed_compiler into an enum classThomas Otto2020-02-175-28/+24
| |
| * Context: move manifest_stats_file and convert to std::stringThomas Otto2020-02-174-8/+6
| |
| * Context: move cpp_stderr and convert to std::stringThomas Otto2020-02-174-10/+7
| |
| * Context: move i_tmpfile and converted to std::stringThomas Otto2020-02-174-12/+9
| |
| * Context: move has_absolute_include_headersThomas Otto2020-02-174-11/+8
| |
| * Context: move g_included_filesThomas Otto2020-02-174-15/+14
| |
| * Context: move time_of_compilation, adapt manifestThomas Otto2020-02-177-16/+22
| |
| * Context: move manifest_path and converted to std::stringThomas Otto2020-02-174-21/+16
| |
| * Context: move (cached_)result_name/result_pathThomas Otto2020-02-175-27/+22
| | | | | | | | Also convert result_path to std::string.
| * Context: move arch_argsThomas Otto2020-02-173-24/+8
| |
| * Context: move output_is_precompiled_headerThomas Otto2020-02-175-13/+6
| |
| * Partially revert const-ification of context parametersThomas Otto2020-02-179-22/+22
|/
* Improve functions related to CWDJoel Rosdahl2020-02-1612-133/+108
| | | | | | | | | | | | | | | | | | | | The different functions related to current working directory (CWD) have become messy during the years: - gnu_getcwd is a simple wrapper around getcwd(3), thus returning the actual canonical path. - get_cwd returns $PWD, falling back to getcwd(3) if $PWD is not sane. - get_current_working_dir (local function in ccache.cpp) memoizes x_realpath(get_cwd()) (i.e., getcwd(3) in essence...) in the global current_working_dir variable. Unit tests may manipulate current_working_dir. Improve this by: - Replacing gnu_getcwd with Util::get_actual_cwd. - Replacing get_cwd with Util::get_apparent_cwd. - Removing get_current_working_dir and placing both actual and apparent CWD in the context object.
* Simplify (non-)freeing of orig_args on failureJoel Rosdahl2020-02-163-7/+2
|
* Simplify string creation from string_viewJoel Rosdahl2020-02-162-2/+2
|
* Remove now redundant resetting of configJoel Rosdahl2020-02-165-20/+4
| | | | | Since the configuation no longer is global there is no need to reset the unmodified Config object passed by cct_test_begin to cc_reset.
* Const-ify context parameters where appropriateJoel Rosdahl2020-02-1611-40/+42
|
* Merge pull request #542 from totph/ctx4Joel Rosdahl2020-02-1626-413/+493
|\ | | | | Context: g_config, stats_file and orig_args moved
| * Context: move orig_argsThomas Otto2020-02-164-24/+35
| |
| * Context: convert stats_file to an std::stringThomas Otto2020-02-166-35/+37
| | | | | | | | Also adapted downstream stats functions.
| * Context: move stats_fileThomas Otto2020-02-167-16/+13
| |
| * Context: move g_configThomas Otto2020-02-1623-359/+429
|/
* Implement Util::read_link, replacing legacy x_readlinkJoel Rosdahl2020-02-156-38/+24
|
* Implement Util::real_path, replacing legacy x_realpathJoel Rosdahl2020-02-1510-182/+233
|
* Merge pull request #541 from totph/ctx3Joel Rosdahl2020-02-154-108/+32
|\ | | | | Context: move 9 more globals
| * Context: move using_precompiled_headerThomas Otto2020-02-134-9/+1
| |