Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: release sqlite-js
on:
push:
branches:
- main

permissions:
contents: write
Expand Down Expand Up @@ -121,6 +119,7 @@ jobs:
runs-on: ubuntu-latest
name: release
needs: build
if: github.ref == 'refs/heads/main'

env:
GH_TOKEN: ${{ github.token }}
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ else ifeq ($(PLATFORM),isim)
CFLAGS += -arch x86_64 -arch arm64 $(SDK)
else # linux
TARGET := $(DIST_DIR)/js.so
LDFLAGS := -shared
LDFLAGS := -lm -shared
endif

# Object files
Expand All @@ -78,7 +78,7 @@ all: $(TARGET)

# Link the final target
$(TARGET): $(OBJ_FILES) $(DEF_FILE)
$(CC) $(LDFLAGS) -o $@ $^
$(CC) -o $@ $^ $(LDFLAGS)
ifeq ($(PLATFORM),windows)
# Generate import library for Windows
dlltool -D $@ -d $(DEF_FILE) -l $(DIST_DIR)/js.lib
Expand Down Expand Up @@ -131,7 +131,7 @@ endif

# Compile test target
$(TEST_TARGET): $(TEST_FILES) $(TARGET)
$(CC) $(INCLUDES) $^ -lm -o $@ libs/sqlite3.c -DSQLITE_CORE
$(CC) $(INCLUDES) $^ -o $@ libs/sqlite3.c -DSQLITE_CORE

# Testing the extension
test: $(TARGET) $(TEST_TARGET)
Expand Down
Loading