Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac47802 commit 33b4a4fCopy full SHA for 33b4a4f
buildcc/lib/toolchain/include/toolchain/toolchain.h
@@ -58,11 +58,12 @@ class Toolchain : public internal::FlagApi<Toolchain>,
58
explicit Toolchain(Id id, std::string_view name,
59
std::string_view asm_compiler, std::string_view c_compiler,
60
std::string_view cpp_compiler, std::string_view archiver,
61
- std::string_view linker,
+ std::string_view linker, bool locked = true,
62
const ToolchainConfig &config = ToolchainConfig())
63
: id_(id), name_(name), asm_compiler_(asm_compiler),
64
c_compiler_(c_compiler), cpp_compiler_(cpp_compiler),
65
archiver_(archiver), linker_(linker), config_(config) {
66
+ locked ? lock_.Lock() : lock_.Unlock();
67
UpdateConfig(config_);
68
}
69
0 commit comments