Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | C++-ify common_dir_prefix_length | Joel Rosdahl | 2020-02-23 | 6 | -39/+51 | |
| | ||||||
* | Implement Util::normalize_absolute_path | Joel Rosdahl | 2020-02-23 | 3 | -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 paths | Joel Rosdahl | 2020-02-23 | 2 | -6/+7 | |
| | ||||||
* | C++-ify is_absolute_path | Joel Rosdahl | 2020-02-23 | 8 | -19/+37 | |
| | ||||||
* | Sort test cases | Joel Rosdahl | 2020-02-23 | 1 | -58/+58 | |
| | ||||||
* | Move basedir tests to the basedir test suite | Joel Rosdahl | 2020-02-23 | 2 | -48/+48 | |
| | ||||||
* | Add pch test suite probe for seemingly broken compiler support | Joel Rosdahl | 2020-02-22 | 1 | -2/+9 | |
| | | | | This fixes a problem mentioned by Orion Poplawski in a comment to PR #217. | |||||
* | Const-ify Context& parameters where possible | Joel Rosdahl | 2020-02-22 | 1 | -5/+5 | |
| | ||||||
* | Simplify setting of ctx.args_info.profile_dir default value | Joel Rosdahl | 2020-02-22 | 1 | -6/+4 | |
| | ||||||
* | Convert stats_update(x) + failed() to failed(x) in hash_*command*() | Joel Rosdahl | 2020-02-22 | 4 | -38/+26 | |
| | ||||||
* | Use find_executable_in_path to find executable in hash_command_output | Joel Rosdahl | 2020-02-22 | 3 | -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 error | Joel Rosdahl | 2020-02-22 | 2 | -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_args | Joel Rosdahl | 2020-02-22 | 3 | -44/+44 | |
| | ||||||
* | Convert stats_update(x) + failed() to failed(x) in cc_process_args | Joel Rosdahl | 2020-02-22 | 3 | -125/+95 | |
| | ||||||
* | Convert most stats_update(x) + failed() to failed(x) | Joel Rosdahl | 2020-02-22 | 1 | -80/+52 | |
| | ||||||
* | Don’t increment STATS_COMPILER on fatal error | Joel Rosdahl | 2020-02-22 | 2 | -2/+4 | |
| | | | | Statistics counters are otherwise never incremented on fatal errors. | |||||
* | Make it possible to run failed() and not execute the real compiler | Joel Rosdahl | 2020-02-22 | 2 | -15/+38 | |
| | | | | | This removes one of the last x_exit calls deeper into the main ccache code paths. | |||||
* | Remove leftover cc_reset declaration | Joel Rosdahl | 2020-02-22 | 1 | -1/+0 | |
| | ||||||
* | Merge pull request #543 from totph/ctx5 | Joel Rosdahl | 2020-02-22 | 18 | -426/+307 | |
|\ | | | | | Final Globals -> Context moves | |||||
| * | Turn lock_staleness_limit into a constant | Thomas Otto | 2020-02-17 | 3 | -58/+6 | |
| | | | | | | | | Remove now-empty legacy_globals.cpp/hpp. | |||||
| * | Context: move counters | Thomas Otto | 2020-02-17 | 7 | -98/+97 | |
| | | ||||||
| * | Context: move ignore_headers_len, remove cc_reset() | Thomas Otto | 2020-02-17 | 8 | -40/+16 | |
| | | ||||||
| * | Context: move included_pch_file and convert to std::string | Thomas Otto | 2020-02-17 | 4 | -16/+15 | |
| | | ||||||
| * | Context: move guessed_compiler | Thomas Otto | 2020-02-17 | 5 | -24/+26 | |
| | | ||||||
| * | Convert guessed_compiler into an enum class | Thomas Otto | 2020-02-17 | 5 | -28/+24 | |
| | | ||||||
| * | Context: move manifest_stats_file and convert to std::string | Thomas Otto | 2020-02-17 | 4 | -8/+6 | |
| | | ||||||
| * | Context: move cpp_stderr and convert to std::string | Thomas Otto | 2020-02-17 | 4 | -10/+7 | |
| | | ||||||
| * | Context: move i_tmpfile and converted to std::string | Thomas Otto | 2020-02-17 | 4 | -12/+9 | |
| | | ||||||
| * | Context: move has_absolute_include_headers | Thomas Otto | 2020-02-17 | 4 | -11/+8 | |
| | | ||||||
| * | Context: move g_included_files | Thomas Otto | 2020-02-17 | 4 | -15/+14 | |
| | | ||||||
| * | Context: move time_of_compilation, adapt manifest | Thomas Otto | 2020-02-17 | 7 | -16/+22 | |
| | | ||||||
| * | Context: move manifest_path and converted to std::string | Thomas Otto | 2020-02-17 | 4 | -21/+16 | |
| | | ||||||
| * | Context: move (cached_)result_name/result_path | Thomas Otto | 2020-02-17 | 5 | -27/+22 | |
| | | | | | | | | Also convert result_path to std::string. | |||||
| * | Context: move arch_args | Thomas Otto | 2020-02-17 | 3 | -24/+8 | |
| | | ||||||
| * | Context: move output_is_precompiled_header | Thomas Otto | 2020-02-17 | 5 | -13/+6 | |
| | | ||||||
| * | Partially revert const-ification of context parameters | Thomas Otto | 2020-02-17 | 9 | -22/+22 | |
|/ | ||||||
* | Improve functions related to CWD | Joel Rosdahl | 2020-02-16 | 12 | -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 failure | Joel Rosdahl | 2020-02-16 | 3 | -7/+2 | |
| | ||||||
* | Simplify string creation from string_view | Joel Rosdahl | 2020-02-16 | 2 | -2/+2 | |
| | ||||||
* | Remove now redundant resetting of config | Joel Rosdahl | 2020-02-16 | 5 | -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 appropriate | Joel Rosdahl | 2020-02-16 | 11 | -40/+42 | |
| | ||||||
* | Merge pull request #542 from totph/ctx4 | Joel Rosdahl | 2020-02-16 | 26 | -413/+493 | |
|\ | | | | | Context: g_config, stats_file and orig_args moved | |||||
| * | Context: move orig_args | Thomas Otto | 2020-02-16 | 4 | -24/+35 | |
| | | ||||||
| * | Context: convert stats_file to an std::string | Thomas Otto | 2020-02-16 | 6 | -35/+37 | |
| | | | | | | | | Also adapted downstream stats functions. | |||||
| * | Context: move stats_file | Thomas Otto | 2020-02-16 | 7 | -16/+13 | |
| | | ||||||
| * | Context: move g_config | Thomas Otto | 2020-02-16 | 23 | -359/+429 | |
|/ | ||||||
* | Implement Util::read_link, replacing legacy x_readlink | Joel Rosdahl | 2020-02-15 | 6 | -38/+24 | |
| | ||||||
* | Implement Util::real_path, replacing legacy x_realpath | Joel Rosdahl | 2020-02-15 | 10 | -182/+233 | |
| | ||||||
* | Merge pull request #541 from totph/ctx3 | Joel Rosdahl | 2020-02-15 | 4 | -108/+32 | |
|\ | | | | | Context: move 9 more globals | |||||
| * | Context: move using_precompiled_header | Thomas Otto | 2020-02-13 | 4 | -9/+1 | |
| | |