Compare commits

...

63 commits

Author SHA1 Message Date
Chloe
2794f21043
Merge 6e2b08a2e2 into d0eb881ebc 2024-08-31 03:44:34 -07:00
SMJS
d0eb881ebc
Fixed a bug where only 1 word wrap variant can exist (#1058)
* Fixed a bug where only 1 word wrap variant can exist

* Made the delimiters a string view
2024-08-31 12:27:38 +02:00
Chloe
6e2b08a2e2
back to vanilla 2024-08-04 05:35:37 -07:00
Chloe
ebd65401cb
no more seeing. 2024-07-29 21:33:58 -07:00
Chloe
82668ee06c
guess we see 2024-07-29 21:27:22 -07:00
Chloe
3704aa3009
ok like actually though 2024-07-29 21:15:37 -07:00
Chloe
deb379d760
??? 2024-07-29 21:00:28 -07:00
Chloe
28cceb16e5
concerning 2024-07-29 20:55:31 -07:00
Chloe
7aac501905
was that all that was needed 2024-07-29 20:40:26 -07:00
Chloe
edb0fd5b85
i don't get it 2024-07-29 18:45:44 -07:00
Chloe
ec0fc78767
tweak the pch logic for apple 2024-07-29 18:39:24 -07:00
Chloe
6fe0582fdf
go back to apple clang 2024-07-29 18:39:09 -07:00
Chloe
97b6a68b7d
Merge branch 'main' into macos-is-mean-yet-again 2024-07-29 17:49:56 -07:00
Chloe
90676409ab
another one (brew llvm + no pch/cache) 2024-07-26 05:54:13 -07:00
Chloe
4788df91da
check 4 woaw (apple clang + no cache) 2024-07-26 05:49:07 -07:00
Chloe
08463f2d0b
performance 3 2024-07-26 05:44:09 -07:00
Chloe
a743d02bbc
performance test 2 2024-07-26 05:39:48 -07:00
Chloe
17e666b92d
back to that 2024-07-26 04:50:02 -07:00
Chloe
ac137d84c9
getting debug info again 2024-07-26 04:37:47 -07:00
Chloe
cd2fcdc078
i forgot. 2024-07-25 20:47:42 -07:00
Chloe
4dc5ba07d0
just seeing 2024-07-25 20:33:01 -07:00
Chloe
807da4754f
that was not it 2024-07-25 20:19:04 -07:00
Chloe
227ab28912
just to see 2024-07-25 20:17:05 -07:00
Chloe
826054fa64
huh 2024-07-25 20:03:30 -07:00
Chloe
93793ac816
🥺 2024-07-25 19:07:19 -07:00
Chloe
0005f4ed66
let's try pch 😮 2024-07-25 18:53:15 -07:00
Chloe
0fdc519c51
??? 2024-07-25 18:45:25 -07:00
Chloe
78e78e4c74
umm what 2024-07-25 18:42:50 -07:00
Chloe
13b30ffbaf
why did we do this anyways 2024-07-25 18:36:34 -07:00
Chloe
306a35f86d
Merge branch 'main' into macos-is-mean-yet-again 2024-07-25 18:35:21 -07:00
Chloe
04ed383f95
Merge branch 'main' into macos-is-mean-yet-again 2024-07-07 05:46:06 -07:00
mat
37590e957f
llvm 15 2024-07-07 01:50:32 -03:00
mat
1d8a64f77e
remember to undo this pls 2024-07-07 01:41:00 -03:00
mat
df0684aeb9
but what if we try llvm 16 2024-07-07 01:36:39 -03:00
ConfiG
b2dcbe73bd
Update build.yml 2024-06-28 23:16:36 +03:00
ConfiG
2d13305dc5
shouldnt need the quotes 2024-06-28 23:14:59 +03:00
ConfiG
08ccb5422b
ok so 2024-06-28 22:06:51 +03:00
ConfiG
5eedc99b4f
try older sdk 2024-06-28 15:27:30 +03:00
ConfiG
57e9e7f627
2024-06-28 15:23:24 +03:00
ConfiG
0bb056d08e
uh 2024-06-28 15:17:24 +03:00
ConfiG
193899bf3d
try llvm 14 idfk 2024-06-28 15:05:39 +03:00
ConfiG
e6fedb0be0
i want apple clang compile commands 2024-06-28 14:56:40 +03:00
ConfiG
c5b1ba3af5
errrmmmmm 2024-06-28 14:48:37 +03:00
ConfiG
a4197cdf80
dfgj 2024-06-28 14:46:25 +03:00
ConfiG
4643044ff3
wai whoops 2024-06-28 14:41:29 +03:00
ConfiG
b774debf1e
17 2024-06-28 14:38:37 +03:00
ConfiG
913cdaa9d5
a 2024-06-28 14:36:08 +03:00
ConfiG
b4c9b62e32
fuckig 2024-06-28 14:31:44 +03:00
ConfiG
3ac48d2c27
idkkk 2024-06-28 14:20:42 +03:00
ConfiG
8d741e534e
can it build only arm 2024-06-28 14:08:12 +03:00
ConfiG
c0edf946ef
hm oka whatever so what if i actually 2024-06-28 14:02:49 +03:00
ConfiG
21a5b21009
llvm ar ranlib 2024-06-28 13:56:25 +03:00
ConfiG
432fef707b
try 2024-06-28 13:40:30 +03:00
qimiko
48bd891398
what if it's like this 2024-06-27 18:29:36 -07:00
qimiko
3b8e14eaf7
oops 2024-06-27 18:08:43 -07:00
qimiko
05ab42c9b6
please fail 2024-06-27 18:04:18 -07:00
qimiko
5b523aa2e1
go error 2024-06-27 17:52:07 -07:00
qimiko
36af716e36
undo that 2024-06-27 16:40:36 -07:00
qimiko
41ecd8e892
take 2 2024-06-27 16:05:50 -07:00
ConfiG
2eca9dea9b
lets try the ldflags and cppflags 2024-06-27 22:40:40 +03:00
qimiko
6117ab36b3
it was exactly as i remembered it 2024-06-27 07:03:44 -07:00
qimiko
65d0528729
have to see 2024-06-27 06:41:33 -07:00
qimiko
62d37f52cb
! 2024-06-27 06:34:00 -07:00
3 changed files with 29 additions and 22 deletions

View file

@ -154,23 +154,20 @@ jobs:
has-sccache: ${{ inputs.use-ccache }} has-sccache: ${{ inputs.use-ccache }}
if: inputs.build-debug-info if: inputs.build-debug-info
- name: Setup caches # due to very strange performance issues, sccache is currently disabled for macos. sorry
uses: ./.github/actions/setup-cache
with: # - name: Setup caches
host: mac # uses: ./.github/actions/setup-cache
target: mac # with:
use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }} # host: mac
# target: mac
# use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
- name: Setup Ninja - name: Setup Ninja
uses: ./.github/actions/setup-ninja uses: ./.github/actions/setup-ninja
with: with:
host: mac host: mac
- name: Install LLVM
run: |
brew install llvm
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
- name: Setup CLI - name: Setup CLI
uses: geode-sdk/cli/.github/actions/setup@main uses: geode-sdk/cli/.github/actions/setup@main
@ -180,9 +177,8 @@ jobs:
-DCMAKE_C_COMPILER=clang -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
-DCMAKE_AR='/usr/bin/ar' -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
-DCMAKE_RANLIB='/usr/bin/ranlib' -DGEODE_DISABLE_PRECOMPILED_HEADERS=OFF
-DGEODE_DISABLE_PRECOMPILED_HEADERS=Off
${{ steps.build-debug-info.outputs.extra-configure }} ${{ steps.build-debug-info.outputs.extra-configure }}
- name: Build - name: Build

View file

@ -132,19 +132,30 @@ endif()
if (DEFINED GEODE_CCACHE_VARIANT) if (DEFINED GEODE_CCACHE_VARIANT)
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS) if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
if (${GEODE_CCACHE_VARIANT} STREQUAL "sccache" AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (${GEODE_CCACHE_VARIANT} STREQUAL "sccache" AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"))
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.") if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF) message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID} while building multiple architectures, PCH will be disabled due to issues with sccache.")
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
else()
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be enabled.")
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
endif()
else() else()
message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be disabled.") message(NOTICE "Using ${GEODE_CCACHE_VARIANT} with ${CMAKE_CXX_COMPILER_ID}, PCH will be disabled.")
set(GEODE_DISABLE_PRECOMPILED_HEADERS ON) set(GEODE_DISABLE_PRECOMPILED_HEADERS ON)
endif() endif()
endif() endif()
else() else()
message(NOTICE "Not using a caching compiler (ccache/sccache). " if (DEFINED CMAKE_OSX_ARCHITECTURES AND (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64;x86_64" OR CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64;arm64"))
"It is recommended to install one to improve build times.") # when building for multiple architectures, a caching compiler is not recommended
message(NOTICE "We recommend sccache, check its README for installation instructions, " message(NOTICE "Not using a caching compiler (ccache/sccache).")
"normally you can just use your usual package manager (e.g. 'scoop install sccache').") else()
message(NOTICE "Not using a caching compiler (ccache/sccache). "
"It is recommended to install one to improve build times.")
message(NOTICE "We recommend sccache, check its README for installation instructions, "
"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
endif()
if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS) if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
message(NOTICE "Because of this, PCH will be enabled.") message(NOTICE "Because of this, PCH will be enabled.")
set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF) set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)

View file

@ -209,7 +209,7 @@ void SimpleTextArea::updateLinesNoWrap() {
void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) { void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) {
this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) { this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) {
static const std::string delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|"); const std::string_view delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|");
if (delimiters.find(c) == std::string_view::npos) { if (delimiters.find(c) == std::string_view::npos) {
const std::string& text = line->getString(); const std::string& text = line->getString();