summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/cmake/main.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-11 13:11:49 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-11 13:19:51 +0200
commit32c961b53e1cbb3b57ca39174986b5d1f26b307a (patch)
tree86b5c5c2051244f1595f07d0c5273a730612fa84 /tests/test_cases/deps/cmake/main.cpp
parentcd7fc8c3fcb04a164ed5d53b76523e6217212114 (diff)
downloadrules-cc-32c961b53e1cbb3b57ca39174986b5d1f26b307a.tar.gz
foreign rules: fix computation of absolute paths
When setting CC, etc, in foreign rules, it is often useful to have it set as absolute path. This originally was achieved using realpath(1). This, however, implies that symbolic links are followed as well, which confuses some compilers if they are not called with correct argv[0]. Therefore, 4e86f756bddca8db402502be47c0825e1e2aeb0d tries to replace this by concatenation with $(pwd), which, however, is only correct for tools brought locally by the toolchain. Hence fix the test by not evaluating it in the shell at all and rather using the knowledge about toolchain versus system tools that the rules have anyway.
Diffstat (limited to 'tests/test_cases/deps/cmake/main.cpp')
0 files changed, 0 insertions, 0 deletions