Skip to content

Commit 5a35a5b

Browse files
committed
fix jpeg on arm
1 parent 0f590b7 commit 5a35a5b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,16 @@ jobs:
6666
6767
6868
Ubuntu:
69-
name: ubuntu-${{ matrix.os-version }}-${{ matrix.build-config }}-${{ matrix.compiler.cc }}
70-
runs-on: ubuntu-${{ matrix.os-version }}
69+
name: ubuntu-${{ matrix.os-version }}${{ matrix.cpu-arch }}-${{ matrix.build-config }}-${{ matrix.compiler.cc }}
70+
runs-on: ubuntu-${{ matrix.os-version }}.04
7171
env:
7272
CC: ${{ matrix.compiler.cc }}
7373
CXX: ${{ matrix.compiler.cxx }}
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
os-version: [22.04, 24.04, 24.04-arm]
77+
os-version: [22, 24]
78+
cpu-arch: ["", "-arm"]
7879
build-config: [debug, release]
7980
compiler:
8081
- {
@@ -98,16 +99,16 @@ jobs:
9899
install: clang-18
99100
}
100101
exclude:
101-
- os-version: 24.04
102+
- os-version: 24
102103
compiler:
103104
cc: gcc-12
104-
- os-version: 22.04
105+
- os-version: 22
105106
compiler:
106107
cc: gcc-13
107-
- os-version: 24.04
108+
- os-version: 24
108109
compiler:
109110
cc: clang-15
110-
- os-version: 22.04
111+
- os-version: 22
111112
compiler:
112113
cc: clang-18
113114

externals/jpeg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ message(STATUS "----------------------------------------------------------------
66

77
include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/jpeg")
88

9-
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
9+
if(CMAKE_C_COMPILER_TARGET MATCHES "x86_64" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
1010
if(WIN32)
1111
set(CMAKE_ASM_NASM_COMPILER "${CMAKE_CURRENT_SOURCE_DIR}/yasm/win64/bin/yasm.exe" CACHE INTERNAL "" FORCE)
1212
set(CMAKE_ASM_NASM_FLAGS "${CMAKE_ASM_NASM_FLAGS} -DWIN64 -D__x86_64__ -D\"EXTN(name)=name\"") # target_compile_definitions does not work with nasm

0 commit comments

Comments
 (0)