forked from bfgroup/b2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checks for C++11 with informative error.
This adds a check_cxx11.cpp source that is checked for compile with the chosen toolset before actually building. This include an appropriate user error. To see such errors, we also nolonger output to bootstrap.log. Instead the bootstrap outputs to cerr and sets the error code.
- Loading branch information
1 parent
b576705
commit 89a7ac5
Showing
4 changed files
with
110 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright 2020 Rene Rivera | ||
* Distributed under the Boost Software License, Version 1.0. | ||
* (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
|
||
/* | ||
This program is a compile test for support of C++11. If it compiles | ||
successfully some key parts of C++11 the B2 engine requires are | ||
available. This is used by the build script to guess and check the | ||
compiler to build the engine with. | ||
*/ | ||
|
||
// Some headers we depend on.. | ||
#include <thread> | ||
|
||
|
||
int main() | ||
{ | ||
// Check for basic thread calls. | ||
{ auto _ = std::thread::hardware_concurrency(); } | ||
} |