Benchmarks & MacOS
TeachRaccooon opened this issue · comments
Max Melnichenko commented
benchmarks on macOS
Several benchmarks have a pragma like #if !defined(__APPLE__)
inside main which determines whether or not the executable does something nontrivial. This difference in behavior across platforms should be easier to identify at a glance. TODO: use a pattern like the following:
#ifdef(__APPLE__)
#include <iostream>
int main(int argc, char **argc) {
std::cout << "This benchmark cannot run on Apple machines." << std::endl;
return 1;
}
#else
// all of your actual code ....
#endif