Skip to content

Commit

Permalink
Data: adjust flags to not use remote
Browse files Browse the repository at this point in the history
Signed-off-by: Dima Dorezyuk <[email protected]>
  • Loading branch information
Dima Dorezyuk committed Oct 18, 2024
1 parent 7f8b4e3 commit c5a21c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ cc_library(
"@com_github_nlohmann_json//:json",
"@com_github_pboettch_json-schema-validator//:json-schema-validator",
],
# See https://github.com/HowardHinnant/date/issues/324
local_defines = [
"BUILD_TZ_LIB=ON",
"USE_SYSTEM_TZ_DB=ON",
"USE_OS_TZDB=1",
"USE_AUTOLOAD=0",
"HAS_REMOTE_API=0",
],
)

cc_library(
Expand Down
4 changes: 3 additions & 1 deletion third-party/bazel/BUILD.date.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ cmake(
cache_entries = {
"BUILD_TZ_LIB": "ON",
"USE_SYSTEM_TZ_DB": "ON",
"MANUAL_TZ_DB": "ON",
"HAS_REMOTE_API": "0",
"USE_AUTOLOAD": "0",
},
copts = ["-std=c++17"],
lib_source = ":all_srcs",
out_static_libs = ["libdate-tz.a"],
visibility = [
Expand Down

0 comments on commit c5a21c0

Please sign in to comment.