Fix linker errors on (Free|Open)BSD. (#6860)

* Fix linker errors on (Free|Open)BSD.

* Adds a TODO for the FreeBSD linker flags: -lm and moves platform config to main BUILD.bazel
This commit is contained in:
Yesudeep Mangalapilly
2021-09-27 12:07:04 -07:00
committed by GitHub
parent f63c130c28
commit 2dd2126379
2 changed files with 23 additions and 0 deletions

View File

@@ -10,6 +10,20 @@ exports_files([
"LICENSE",
])
config_setting(
name = "platform_freebsd",
constraint_values = [
"@platforms//os:freebsd",
],
)
config_setting(
name = "platform_openbsd",
constraint_values = [
"@platforms//os:openbsd",
],
)
# Public flatc library to compile flatbuffer files at runtime.
cc_library(
name = "flatbuffers",