diff options
-rw-r--r-- | build2/cc/link.cxx | 4 | ||||
-rw-r--r-- | build2/utility.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index c51ccd2..623100b 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -1700,8 +1700,8 @@ namespace build2 // multi-threaded runtime) unless -nostdlib or -nostartfiles is // specified. // - if (!find_option ("-nostdlib", args) && - !find_option ("-nostartfiles", args)) + if (!find_options ({"-nostdlib", "-nostartfiles"}, t, c_coptions) && + !find_options ({"-nostdlib", "-nostartfiles"}, t, x_coptions)) args.push_back ("/DEFAULTLIB:libcmt.lib"); } diff --git a/build2/utility.hxx b/build2/utility.hxx index 8ba4fe1..77c46a8 100644 --- a/build2/utility.hxx +++ b/build2/utility.hxx @@ -401,7 +401,7 @@ namespace build2 bool find_option (const char* option, const cstrings&, bool ignore_case = false); - // As above but look for several options. + // As above but look for several options returning true if any is present. // template <typename T> bool |