MCPcopy Create free account
hub / github.com/Kitware/CMake / SetRPathELF

Function SetRPathELF

Source/cmSystemTools.cxx:3608–3624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3606}
3607
3608static cm::optional<bool> SetRPathELF(std::string const& file,
3609 std::string const& newRPath,
3610 std::string* emsg, bool* changed)
3611{
3612 auto adjustCallback = [newRPath](cm::optional<std::string>& outRPath,
3613 std::string const& inRPath,
3614 char const* /*se_name*/, std::string*
3615 /*emsg*/) -> bool {
3616 if (inRPath != newRPath) {
3617 outRPath = newRPath;
3618 }
3619 return true;
3620 };
3621
3622 return AdjustRPathELF(file, MakeEmptyCallback(newRPath), adjustCallback,
3623 emsg, changed);
3624}
3625static cm::optional<bool> ChangeRPathXCOFF(std::string const& file,
3626 std::string const& oldRPath,
3627 std::string const& newRPath,

Callers 1

SetRPathMethod · 0.85

Calls 2

AdjustRPathELFFunction · 0.85
MakeEmptyCallbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…