Skip to content

Commit

Permalink
Compile Bolt using std 14.
Browse files Browse the repository at this point in the history
Summary:
Compile Bolt using std 14.
We want that to be able to use some threading the locking tools that do not exists in std 11.

(cherry picked from FBD15671736)
  • Loading branch information
laithsakka authored and maksfb committed Jun 5, 2019
1 parent 21f4303 commit d3c1821
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bolt/CMakeLists.txt
@@ -1,5 +1,6 @@
set(BOLT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(BOLT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_CXX_STANDARD 14)

add_subdirectory(src)
add_subdirectory(test)
2 changes: 1 addition & 1 deletion bolt/src/DataReader.cpp
Expand Up @@ -267,7 +267,7 @@ DataReader::readPerfData(StringRef Path, raw_ostream &Diag) {
Diag << "cannot open " << Path << ": " << EC.message() << "\n";
return EC;
}
auto DR = make_unique<DataReader>(std::move(MB.get()), Diag);
auto DR = llvm::make_unique<DataReader>(std::move(MB.get()), Diag);
if (auto EC = DR->parse()) {
return EC;
}
Expand Down
2 changes: 1 addition & 1 deletion bolt/src/ProfileWriter.cpp
Expand Up @@ -161,7 +161,7 @@ ProfileWriter::writeProfile(const RewriteInstance &RI) {
const auto &Functions = RI.getBinaryContext().getBinaryFunctions();

std::error_code EC;
OS = make_unique<raw_fd_ostream>(FileName, EC, sys::fs::F_None);
OS = llvm::make_unique<raw_fd_ostream>(FileName, EC, sys::fs::F_None);
if (EC) {
errs() << "BOLT-WARNING: " << EC.message() << " : unable to open "
<< FileName << " for output.\n";
Expand Down

0 comments on commit d3c1821

Please sign in to comment.