From 68cbba7e3ae951331050f7d2201eaf3dafb6437c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=AD=90=E6=87=BF?= Date: Wed, 22 Nov 2023 09:20:38 +0800 Subject: [PATCH] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄子懿 --- .github/workflows/publish.yml | 1 - Makefile | 2 ++ tiny-prof-viewer/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a8c0d74..fc1471c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,7 +35,6 @@ jobs: run: | source emsdk/emsdk_env.sh cd tiny-prof-viewer - make -C src/elfsym npm run build -- --base=/tiny-prof --outDir=dist npm run build -- --base=/ --outDir=html diff --git a/Makefile b/Makefile index 3e4acd9..d20048e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ all: test test_cpp run: test test_cpp @./test + mv a.profile test.profile @./test_cpp + mv a.profile test_cpp.profile test: test.o hook.o $(CC) -g $^ -o $@ -pthread -rdynamic -ldl diff --git a/tiny-prof-viewer/package.json b/tiny-prof-viewer/package.json index ab46a80..1aba16b 100644 --- a/tiny-prof-viewer/package.json +++ b/tiny-prof-viewer/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "vite build", + "build": "make -C src/elfsym && vite build", "preview": "vite preview" }, "dependencies": {