Fix codegen for CXX build

Summary:
Fabric codegen is failing with running without specifying a specific platform. This diff fixes that.

Steps to reproduce:
```
buck build //xplat/js/react-native-github:generated_components-rncore --show-output
```

Error:
```
#include <react/renderer/imagemanager/primitives.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D23114403

fbshipit-source-id: 50210e74f2a99ae5a77087988c3323bdacf04128
This commit is contained in:
David Vacca
2020-08-13 17:45:03 -07:00
committed by Facebook GitHub Bot
parent 59a4d6f52b
commit cc7dd18080
@@ -24,6 +24,13 @@ rn_xplat_cxx_library(
exclude = glob(["tests/**/*.cpp"]),
),
header_namespace = "",
exported_headers = subdir_glob(
[
("", "*.h"),
("platform/cxx", "**/*.h"),
],
prefix = "react/renderer/imagemanager",
),
compiler_flags = [
"-fexceptions",
"-frtti",