Skip to content

Commit

Permalink
Remove dynamic linking to Pallene Tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
singul4ri7y committed Aug 9, 2024
1 parent 0de5848 commit cbb758f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/pallene/c_compiler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ local c_compiler = {}

local CC = os.getenv("CC") or "cc"
local CFLAGS = os.getenv("CFLAGS") or "-O2"
local PTLIBDIR = os.getenv("PTLIBDIR") or "/usr/local/lib"

local function get_uname()
local ok, err, uname = util.outputs_of_execute("uname -s")
Expand Down Expand Up @@ -62,8 +61,6 @@ function c_compiler.compile_o_to_so(in_filename, out_filename)
CFLAGS_SHARED,
"-o", util.shell_quote(out_filename),
util.shell_quote(in_filename),
"-lptracer",
"-Wl,-rpath="..PTLIBDIR,
})
end

Expand Down
1 change: 1 addition & 0 deletions src/pallene/pallenelib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ return [==[
/* Pallene Tracer for function call tracebacks. */
/* Look at `https://github.com/pallene-lang/pallene-tracer` for more info. */
#define PT_IMPLEMENTATION
#include <ptracer.h>
#define PALLENE_UNREACHABLE __builtin_unreachable()
Expand Down

0 comments on commit cbb758f

Please sign in to comment.