Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33b4a4f

Browse files
committed
Update toolchain.h
1 parent ac47802 commit 33b4a4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildcc/lib/toolchain/include/toolchain/toolchain.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ class Toolchain : public internal::FlagApi<Toolchain>,
5858
explicit Toolchain(Id id, std::string_view name,
5959
std::string_view asm_compiler, std::string_view c_compiler,
6060
std::string_view cpp_compiler, std::string_view archiver,
61-
std::string_view linker,
61+
std::string_view linker, bool locked = true,
6262
const ToolchainConfig &config = ToolchainConfig())
6363
: id_(id), name_(name), asm_compiler_(asm_compiler),
6464
c_compiler_(c_compiler), cpp_compiler_(cpp_compiler),
6565
archiver_(archiver), linker_(linker), config_(config) {
66+
locked ? lock_.Lock() : lock_.Unlock();
6667
UpdateConfig(config_);
6768
}
6869

0 commit comments

Comments
 (0)