Travis: Fix C++ compilation
Summary: @public Removes the usage of C++14 features, and enforces C++11 via compiler flags. Reviewed By: SidharthGuglani Differential Revision: D15334938 fbshipit-source-id: 011764b5f226fef6a35e0c7c1dd170a39ae2261e
This commit is contained in:
committed by
Facebook Github Bot
parent
0ce42d83e0
commit
e3156279fc
@@ -9,8 +9,6 @@
|
|||||||
#include <yoga/YGNode.h>
|
#include <yoga/YGNode.h>
|
||||||
#include <yoga/event/event.h>
|
#include <yoga/event/event.h>
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook {
|
||||||
namespace yoga {
|
namespace yoga {
|
||||||
namespace test {
|
namespace test {
|
||||||
@@ -48,7 +46,9 @@ int TestUtil::nodeCount() {
|
|||||||
|
|
||||||
int TestUtil::stopCountingNodes() {
|
int TestUtil::stopCountingNodes() {
|
||||||
Event::reset();
|
Event::reset();
|
||||||
return std::exchange(nodeInstanceCount, 0);
|
auto prev = nodeInstanceCount;
|
||||||
|
nodeInstanceCount = 0;
|
||||||
|
return prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScopedEventSubscription::ScopedEventSubscription(
|
ScopedEventSubscription::ScopedEventSubscription(
|
||||||
|
@@ -58,6 +58,7 @@ BASE_COMPILER_FLAGS = [
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
"-Werror",
|
"-Werror",
|
||||||
"-O2",
|
"-O2",
|
||||||
|
"-std=c++11",
|
||||||
]
|
]
|
||||||
|
|
||||||
LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
|
LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
|
||||||
|
Reference in New Issue
Block a user