From c10ad4805874b9594a63919ffaa557256edc73aa Mon Sep 17 00:00:00 2001 From: Joseph Werle Date: Mon, 6 May 2024 15:06:41 -0400 Subject: [PATCH] chore(bin,test): clean up --- bin/build-runtime-library.sh | 9 +++------ test/src/util.js | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/build-runtime-library.sh b/bin/build-runtime-library.sh index eba27447cb..5589065e10 100755 --- a/bin/build-runtime-library.sh +++ b/bin/build-runtime-library.sh @@ -102,17 +102,14 @@ declare sources=( $(find "$root"/src/core/*.cc) $(find "$root"/src/ipc/*.cc) $(find "$root"/src/extension/*.cc) + "$root/src/window/manager.cc" "$root/src/window/dialog.cc" + "$root/src/window/hotkey.cc" ) declare test_headers=() declare cflags -if [[ "$platform" = "desktop" ]]; then - sources+=("$root/src/window/hotkey.cc") - sources+=("$root/src/window/manager.cc") -fi - if [[ "$platform" = "android" ]]; then source "$root/bin/android-functions.sh" android_fte @@ -141,7 +138,7 @@ elif [[ "$host" = "Win32" ]]; then sources+=("$root/src/process/win.cc") fi -cflags+=($("$root/bin/cflags.sh")) +cflags+=($(ARCH="$arch" "$root/bin/cflags.sh")) if [[ "$platform" = "android" ]]; then cflags+=("$clang_target ${android_includes[*]}") diff --git a/test/src/util.js b/test/src/util.js index 7e80030242..d53ffbcff5 100644 --- a/test/src/util.js +++ b/test/src/util.js @@ -140,8 +140,6 @@ test('util.splitBuffer', (t) => { t.equal(c.toString(), 'ar', 'util.splitBuffer returns an array of buffers') }) -test('util.InvertedPromise', (t) => {}) - test('util.clamp', (t) => { t.equal(util.clamp(0, 0, 1), 0, 'util.clamp returns the lower bound if the value is less than the lower bound') t.equal(util.clamp(1, 0, 1), 1, 'util.clamp returns the upper bound if the value is greater than the upper bound')