diff options
author | Kiyoung Kim <kiyoungkim@google.com> | 2020-02-18 00:52:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-02-18 00:52:59 +0000 |
commit | 47ddeb1ae45dcd62c30c232c9b5490877da6185b (patch) | |
tree | a2c24544f8b2bf125d30864e62954c0fb65b1462 /linker/linker.cpp | |
parent | 3597b0676b6b9c886ced9fb5d0e6e74379965c91 (diff) | |
parent | 1878690fddf780e2e4fd7753b77c7e2bc3c293be (diff) |
Merge "Deprecate sys.linker.use_generated_config property"
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r-- | linker/linker.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp index 03b08b695..15b6a40ff 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -3448,16 +3448,12 @@ static std::string get_ld_config_file_path(const char* executable_path) { return path; } - // Use generated linker config if flag is set - // TODO(b/138920271) Do not check property once it is confirmed as stable - if (android::base::GetBoolProperty("sys.linker.use_generated_config", true)) { - if (file_exists(kLdGeneratedConfigFilePath)) { - return kLdGeneratedConfigFilePath; - } else { - // TODO(b/146386369) : Adjust log level and add more condition to log only when necessary - INFO("Warning: failed to find generated linker configuration from \"%s\"", - kLdGeneratedConfigFilePath); - } + if (file_exists(kLdGeneratedConfigFilePath)) { + return kLdGeneratedConfigFilePath; + } else { + // TODO(b/146386369) : Adjust log level and add more condition to log only when necessary + INFO("Warning: failed to find generated linker configuration from \"%s\"", + kLdGeneratedConfigFilePath); } path = get_ld_config_file_vndk_path(); |