Thanks Shawn,
I do find it throwing "too many values to unpack” error. So not sure if it is right.
2016-09-28 15:19:46.738][warn ][command:91c87b70-6e5a-454b-a985-8278c738972d][tid:25][com.facebook.buck.json.ProjectBuildFileParser] Fatal error raised by BUCK file parser for file /home/mallik/interana/backend/build_tools/folly/BUCK (parse): File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 1283, in process_with_diagnostics
diagnostics=diagnostics)
File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 1194, in process
implicit_includes=self._implicit_includes)
File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 1134, in _process_build_file
implicit_includes=implicit_includes)
File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 1057, in _process
exec(code, module.__dict__)
File "/home/mallik/interana/backend/build_tools/folly/BUCK", line 3, in <module>
exported_headers = subdir_glob(['folly/*.h']),
File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 139, in invoke
return self.func(*args, **updated_kwargs)
File "/home/mallik/interana/backend/buck-out/tmp/buck_run.Owichr/buck_python_program6394826828004609854/buck.py", line 361, in subdir_glob
for dirpath, glob_pattern in glob_specs:
ValueError: too many values to unpack
build_tools/folly$ cat BUCK
prebuilt_cxx_library(
name = 'folly',
exported_headers = subdir_glob(['folly/*.h']),
visibility = [ 'PUBLIC' ],
header_only = True,
)
binary is:
cxx_binary(
name = 'csv2json',
srcs = [
'csv2json1.cpp',
],
deps = [
'//rel:version',
'//build_tools/folly:folly',
],
)
source csv2json1.cpp is:
#include <iostream>
#include <folly/mallik.h>
int main() {
std::cout << "Hello World of BUCK";
return 0;
}
> --
> You received this message because you are subscribed to a topic in the Google Groups "Buck" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/buck-build/EgpDXRss_8s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
buck-build+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.