Skip to content

Commit 4d25739

Browse files
committed
Update recipes for compiling C++ examples
1 parent 57e5b89 commit 4d25739

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/make/lib/examples/cpp.mk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
# limitations under the License.
1717
#/
1818

19+
# VARIABLES #
20+
21+
# Define the path to a script for compiling a C++ example:
22+
compile_cpp_example_bin := $(TOOLS_DIR)/scripts/compile_cpp_example
23+
24+
1925
# RULES #
2026

2127
#/
@@ -45,7 +51,7 @@ examples-cpp:
4551
NODE="$(NODE)" \
4652
NODE_PATH="$(NODE_PATH)" \
4753
CXX_COMPILER="$(CXX)" \
48-
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) && \
54+
"${compile_cpp_example_bin}" $$file && \
4955
$(MAKE) run || exit 1; \
5056
done
5157

@@ -75,7 +81,7 @@ examples-cpp-files:
7581
NODE="$(NODE)" \
7682
NODE_PATH="$(NODE_PATH)" \
7783
CXX_COMPILER="$(CXX)" \
78-
BOOST="$(DEPS_BOOST_BUILD_OUT)" $(MAKE) && \
84+
"${compile_cpp_example_bin}" $$file && \
7985
$(MAKE) run || exit 1; \
8086
done
8187

0 commit comments

Comments
 (0)