nicholasjng / nanobind-bazel

Bazel defs and rules for building Python projects with nanobind extensions.
Apache License 2.0
6 stars 0 forks source link

Refactor common build opts, build robin_map without -fexceptions #23

Closed nicholasjng closed 5 months ago

nicholasjng commented 5 months ago

-fexceptions seems to be the default for gcc and clang, anyways.

The common options are factored out into a new helper function, with the option of a mode argument, which is either user-facing (the default, adds -fno-stack-protector on Unix systems) or lib-facing (no-op).

nicholasjng commented 5 months ago

Addendum: -ffunction-sections and -fdata-sections were removed from the common options, since they are given with compilation_mode=opt.