I'm using clang to build some Chrome OS code outside of the CrOS build environment. Everything is being built from a single Makefile.
I am getting the below compiler error in libchrome/base/allocator/allocator_extension.cc.
It is attempting to #include the tcmalloc header files, which are inside of a "#if defined(USE_TCMALLOC)" block. I would expect that USE_TCMALLOC is not defined by default. Is this not the case?
Simon
========================
clang++ -g -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -I . -I atrusctl/src -I atrus-genfiles/include -I libchrome -I libbrillo -I chromim/src -I tcmlloc -I /usr/include/dbus-1.0 -I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/dbus-1.0/include -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -c libchrome/base/allocator/allocator_extension.cc -o libchrome/base/allocator/allocator_extension.o
libchrome/base/allocator/allocator_extension.cc:10:10: fatal error: 'third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h' file not found
#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"