Skip to content

Commit a1e291a

Browse files
authored
Accpet OsStr instead of str for flags (#1100)
* Update `getenv` to return `Arc<Ostr>` instead of `Arc<str>` It is possible that the environment variable contains non-utf8 charactes Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Update `get_cpp_link_stdlib` to return `Result<Option<Cow<'_, Path>>, Error>` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Update `cpp_{set, link}_stdlib` to accept `Path` instead of `str` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Optimize `prefix_for_target` to ret `Cow<'static, str>` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Accept `impl AsRef<OsStr>` for asm, ar and cc/cxx flags and `link_lib_modifiers` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Improve debug logging in `getenv` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Revert deprecation * Revert `cpp_{set, link}_stdlib` changes Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix doc Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 7ff340c commit a1e291a

File tree

2 files changed

+153
-70
lines changed

2 files changed

+153
-70
lines changed

0 commit comments

Comments
 (0)