<NME> bm_util.h
<BEF> ADDFILE
<MSG> Merge pull request #1628 from cvmfs/build-elcapitan

Build system fixes

Number of smaller build system fixes. Add `BUILD_ALL` build option to build all possible binaries (i.e. cover all C++ sources).

As for OS X builds: it requires the OS X command line tools that can be installed with `xcode-select --install`.

<DFF> @@ -0,0 +1,22 @@
+/**
+ * This file is part of the CernVM File System.
+ */
+#ifndef TEST_MICRO_BENCHMARKS_BM_UTIL_H_
+#define TEST_MICRO_BENCHMARKS_BM_UTIL_H_
+
+/**
+ * Probably the same as benchmark::DoNotOptimize
+ */
+inline static void Escape(void *p) {
+  asm volatile("" : : "g"(p): "memory");
+}
+
+/**
+ * Tell the optimizier that after this command, everything in the memory could
+ * have changed.
+ */
+inline static void ClobberMemory() {
+  asm volatile("" : : : "memory");
+}
+
+#endif  // TEST_MICRO_BENCHMARKS_BM_UTIL_H_

{'addition_count': 22, 'commit_subject': 'Merge pull request #1628 from cvmfs/build-elcapitan', 'deletion_count': 0, 'file_extension': '.h', 'lang': 'h', 'license': 'bsd-3-clause', 'repo_name': 'cvmfs/cvmfs'}