Skip to content

Commit

Permalink
[build] change to release build for osx
Browse files Browse the repository at this point in the history
Summary:
`otool -L infer` reports that libsqlite3 is in /usr/lib/libsqlite3.dylib but
that is a lie, as osx now uses a "library cache" for system libraries instead
of physical files in /usr/lib/. This makes the install process of infer fail.
Do not ship libsqlite3 anymore.

Reviewed By: ngorogiannis

Differential Revision: D58817613

fbshipit-source-id: c0e8909a64952f92b0f4489c2523ecd9e05684d3
  • Loading branch information
jvillard authored and facebook-github-bot committed Jun 20, 2024
1 parent 291b8cf commit 255e3b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -888,12 +888,15 @@ else # LDD
ifneq ($(OTOOL),no)
ifneq ($(INSTALL_NAME_TOOL),no)
# this sort of assumes osx
# figure out where libgmp, libmpfr, and libsqlite3 are using otool
# figure out where libgmp and libmpfr are using otool
#
# Since macOS Big Sur, libsqlite3.dylib is in the "library cache" and so there is no
# corresponding file in /usr/lib
set -e; \
set -x; \
for lib in $$($(OTOOL) -L $(INFER_BIN) \
| cut -d ' ' -f 1 | tr -d '\t' \
| grep -e 'lib\(gmp\|mpfr\|sqlite\)'); do \
| grep -e 'lib\(gmp\|mpfr\)'); do \
$(INSTALL_PROGRAM) -C "$$lib" '$(DESTDIR)$(libdir)'/infer/infer/libso/; \
done
set -x; \
Expand Down

0 comments on commit 255e3b7

Please sign in to comment.