Skip to content

Commit

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

* Empty commit
  • Loading branch information
sebastijankuzner authored Jan 31, 2024
1 parent d058e5f commit fb3cbc3
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 fb3cbc3

Please sign in to comment.