Skip to content

WASM simple PoC#26

Closed
pawelchcki wants to merge 1 commit into
mainfrom
pawel/wasm-poc
Closed

WASM simple PoC#26
pawelchcki wants to merge 1 commit into
mainfrom
pawel/wasm-poc

Conversation

@pawelchcki

Copy link
Copy Markdown
Contributor

What does this PR do?

As a followup to one of conversation last week, a quick and dirty PoC + some benchmarks of libdatadog compiling into wasm

@pawelchcki

Copy link
Copy Markdown
Contributor Author

Ancient stuff at this point

@pawelchcki pawelchcki closed this Oct 23, 2024
@dd-devflow dd-devflow Bot deleted the pawel/wasm-poc branch June 18, 2025 00:22
ivoanjo added a commit that referenced this pull request Jun 18, 2025
… macOS (#26)

* Upgrade to latest version of `standard` gem

* Cleanup old versions from Rakefile

We don't support using an up-to-date `Rakefile` to release a version
other than the current in `version.rb` so it doesn't make sense to
keep old versions around.

* Avoid packaging a few more useless files

* Refactor `Rakefile` to avoid repetition, add experimental support for macOS

* Add mechanism to exclude some libddprof tarball files from package

* Package libddprof shared library only, ignore static library

This is still WIP, since the 0.3.0 release doesn't actually
ship a shared library.

* Code reformatter fixes

* Tweak experimental macOS packaging

* Add pkg-config variant that sets rpath

The `ddprof_ffi_with_rpath.pc` includes the linker flags
`-Wl,-rpath,${libdir}` so that libddprof can be linked to and used in
the directory it gets installed to.

Without this, we would need to set the same flags in the libddprof user
side, or use `LD_LIBRARY_PATH` or some other mean to tell the OS how
to find libddprof.

These two links helped me figure this out:
* https://amir.rachum.com/blog/2016/09/17/shared-libraries/
* mesonbuild/meson#4027

Also included is a change to `ffi-build.sh` so that the macOS dynamic
library is setup to correctly being used with rpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant