I was struggling to get some C++ code that involves the header
#include <execution>
working in XCode (Version 11.4 (11E146)) through macOS Catalina Version 10.15.3, as it failed with error:
'execution' file not found
Finally I was able to compile my code by installing the gcc-HEAD version from brew:
$ g++ --version
g++ (Homebrew GCC HEAD-93a49d2) 10.0.1 20200407 (experimental)
However, I'm still struggling to use this g++-HEAD version through XCode. I tried in XCode's "Build Settings" this way:
I also tried to change in above settings: Dialect from C++17 to GNU++17 [-std=gnu++17], and C++ Standard Library to libstdc++ (GNU C++ standard library). But XCode still complains that it couldn't find 'execution' file.
As suggested by @walnut, it seems that I need to set up the clear path to the entirely different compiler other than XCode's default clang. What shall I write down in the below window?
Thanks!