OK I fixed a couple of bugs in localize_headers.
my $FILE = "/home/tzafrir/folly-0.39.0/folly/experimental/io/HugePages.cpp"; my $COMP = "clang++"; my $CPP = "-x c++"; my $CFLAGS = "-std=gnu++0x -I/home/tzafrir/folly-0.39.0"; my $EXT = ".cpp";
Due to CPP I cannot promise anything in the general case, but localize_headers seems to work on this example now, please double check.
Thanks for the report! John