qitab / cl-protobufs

Common Lisp protocol buffer implementation.
MIT License
84 stars 18 forks source link

Use the :opt feature to determine optimization settings #293

Closed copybara-service[bot] closed 3 years ago

copybara-service[bot] commented 3 years ago

Use the :opt feature to determine optimization settings

The :opt feature is added to features by Bazel with the --compilation_mode=opt flag, so we can use that to decide how to configure optimizations.

For now I've left all the individual (declare #.$optimize-serialization) forms in the code in case we want to roll this back, but they do nothing without --compilation_mode=opt. I plan to remove them later.