Skip to content

Commit a640625

Browse files
committedOct 15, 2018
use ls -lah as du -h --apparent-size is not universally supported.
1 parent ef3856c commit a640625

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ MASON = .mason/mason
22
BOOST_VERSION = 1.62.0
33

44
CXX := $(CXX)
5-
CXX_STD ?= c++11
5+
CXX_STD ?= c++17
66

77
BOOST_ROOT = $(shell $(MASON) prefix boost $(BOOST_VERSION))
88
BOOST_FLAGS = -isystem $(BOOST_ROOT)/include/
@@ -112,10 +112,10 @@ coverage:
112112

113113
sizes: Makefile
114114
mkdir -p ./out
115-
@$(CXX) -o ./out/our_variant_hello_world.out include/mapbox/variant.hpp -I./include $(FINAL_CXXFLAGS) && du -h --apparent-size ./out/our_variant_hello_world.out
116-
@$(CXX) -o ./out/boost_variant_hello_world.out $(BOOST_ROOT)/include/boost/variant.hpp -I./include $(FINAL_CXXFLAGS) $(BOOST_FLAGS) && du -h --apparent-size ./out/boost_variant_hello_world.out
117-
@$(CXX) -o ./out/our_variant_hello_world ./test/our_variant_hello_world.cpp -I./include $(FINAL_CXXFLAGS) && du -h --apparent-size ./out/our_variant_hello_world
118-
@$(CXX) -o ./out/boost_variant_hello_world ./test/boost_variant_hello_world.cpp -I./include $(FINAL_CXXFLAGS) $(BOOST_FLAGS) && du -h --apparent-size ./out/boost_variant_hello_world
115+
@$(CXX) -o ./out/our_variant_hello_world.out include/mapbox/variant.hpp -I./include $(FINAL_CXXFLAGS) && ls -lah ./out/our_variant_hello_world.out
116+
@$(CXX) -o ./out/boost_variant_hello_world.out $(BOOST_ROOT)/include/boost/variant.hpp -I./include $(FINAL_CXXFLAGS) $(BOOST_FLAGS) && ls -lah ./out/boost_variant_hello_world.out
117+
@$(CXX) -o ./out/our_variant_hello_world ./test/our_variant_hello_world.cpp -I./include $(FINAL_CXXFLAGS) && ls -lah ./out/our_variant_hello_world
118+
@$(CXX) -o ./out/boost_variant_hello_world ./test/boost_variant_hello_world.cpp -I./include $(FINAL_CXXFLAGS) $(BOOST_FLAGS) && ls -lah ./out/boost_variant_hello_world
119119

120120
profile: out/bench-variant-debug
121121
mkdir -p profiling/

0 commit comments

Comments
 (0)
Please sign in to comment.