airbnb/BuckSample

linker flags error in cxx_library and "-I $(location //targets:myrule)" preprocessor flags

Opened this issue · 0 comments

Hi guys, I have 2 issues in buck_local project generation.

1. cxx_library rule is not included in linker flags BuckLocal/BUCK. This mapping caused compiler error (missing symbol) when I used cxx_library rule.

Current

cxx_library() not included in linker flags BuckLocal/BUCK

Expected

library gets linked in BuckLocal/BUCK
Screen Shot 2021-03-25 at 13 43 44

2. Some of my rules are using preprocessor_flag = ["-I $(location //targets:myrule)"]. Somehow this gets filtered in the query and included in linker flags.

Current

Screen Shot 2021-03-25 at 13 39 28

Caused by
Screen Shot 2021-03-25 at 13 41 47

Expected

string "-lct#iphonesimulator-x86_64,private-headers.hm" not included in linker flags