Skip to content

Commit

Permalink
feat(core): discover libjemalloc.so without installed gcc (#4806)
Browse files Browse the repository at this point in the history
* Support docker without gcc

* Empty commit
  • Loading branch information
sebastijankuzner committed Feb 1, 2024
1 parent e59fb09 commit 2cd2f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const child_process = require("child_process");

const jemallocPath = child_process
.spawnSync(
`ls -d1H $(gcc -print-search-dirs | grep libraries: | awk '{print $2}' | sed -e 's/:/* /g' -e 's/$/*/' -e 's/^.//') | grep libjemalloc.so`,
`ls -d1H $(gcc -print-search-dirs | grep libraries: | awk '{print $2}' | sed -e 's/:/* /g' -e 's/$/*/' -e 's/^.//') | grep libjemalloc.so || ls -d1H /usr/lib/* | grep libjemalloc.so`,
{ shell: true },
)
.stdout.toString()
Expand Down

0 comments on commit 2cd2f67

Please sign in to comment.