56
56
echo ' NODE_JS=["nodejs", "--stack_size=8192"]' > ~ /.emscripten
57
57
fi
58
58
59
-
60
59
# Boost
61
60
echo -en ' travis_fold:start:compiling_boost\\r'
62
- cd " $WORKSPACE " /boost_1_57_0
61
+ cd " $WORKSPACE " /boost_1_67_0
63
62
# if b2 exists, it is a fresh checkout, otherwise it comes from the cache
64
63
# and is already compiled
65
64
test -e b2 && (
66
- sed -i ' s|using gcc ;|using gcc : : em++ ;|g' ./project-config.jam
67
- sed -i ' s|$(archiver\[1\])|emar|g' ./tools/build/src/tools/gcc.jam
68
- sed -i ' s|$(ranlib\[1\])|emranlib|g' ./tools/build/src/tools/gcc.jam
69
- ./b2 link=static variant=release threading=single runtime-link=static \
70
- system regex filesystem unit_test_framework program_options
65
+ ./b2 toolset=emscripten link=static variant=release threading=single runtime-link=static \
66
+ system regex filesystem unit_test_framework program_options cxxflags=" -Wno-unused-local-typedef -Wno-variadic-macros -Wno-c99-extensions -Wno-all"
71
67
find . -name ' libboost*.a' -exec cp {} . \;
72
68
rm -rf b2 libs doc tools more bin.v2 status
73
69
)
@@ -89,17 +85,12 @@ cmake \
89
85
-DBoost_FOUND=1 \
90
86
-DBoost_USE_STATIC_LIBS=1 \
91
87
-DBoost_USE_STATIC_RUNTIME=1 \
92
- -DBoost_INCLUDE_DIR=" $WORKSPACE " /boost_1_57_0/ \
93
- -DBoost_FILESYSTEM_LIBRARY=" $WORKSPACE " /boost_1_57_0/libboost_filesystem.a \
94
- -DBoost_FILESYSTEM_LIBRARIES=" $WORKSPACE " /boost_1_57_0/libboost_filesystem.a \
95
- -DBoost_PROGRAM_OPTIONS_LIBRARY=" $WORKSPACE " /boost_1_57_0/libboost_program_options.a \
96
- -DBoost_PROGRAM_OPTIONS_LIBRARIES=" $WORKSPACE " /boost_1_57_0/libboost_program_options.a \
97
- -DBoost_REGEX_LIBRARY=" $WORKSPACE " /boost_1_57_0/libboost_regex.a \
98
- -DBoost_REGEX_LIBRARIES=" $WORKSPACE " /boost_1_57_0/libboost_regex.a \
99
- -DBoost_SYSTEM_LIBRARY=" $WORKSPACE " /boost_1_57_0/libboost_system.a \
100
- -DBoost_SYSTEM_LIBRARIES=" $WORKSPACE " /boost_1_57_0/libboost_system.a \
101
- -DBoost_UNIT_TEST_FRAMEWORK_LIBRARY=" $WORKSPACE " /boost_1_57_0/libboost_unit_test_framework.a \
102
- -DBoost_UNIT_TEST_FRAMEWORK_LIBRARIES=" $WORKSPACE " /boost_1_57_0/libboost_unit_test_framework.a \
88
+ -DBoost_INCLUDE_DIR=" $WORKSPACE " /boost_1_67_0/ \
89
+ -DBoost_FILESYSTEM_LIBRARY_RELEASE=" $WORKSPACE " /boost_1_67_0/libboost_filesystem.a \
90
+ -DBoost_PROGRAM_OPTIONS_LIBRARY_RELEASE=" $WORKSPACE " /boost_1_67_0/libboost_program_options.a \
91
+ -DBoost_REGEX_LIBRARY_RELEASE=" $WORKSPACE " /boost_1_67_0/libboost_regex.a \
92
+ -DBoost_SYSTEM_LIBRARY_RELEASE=" $WORKSPACE " /boost_1_67_0/libboost_system.a \
93
+ -DBoost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE=" $WORKSPACE " /boost_1_67_0/libboost_unit_test_framework.a \
103
94
-DTESTS=0 \
104
95
..
105
96
make -j 4
0 commit comments