File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 38
38
CFLAGS="-m32 -O1 -fstack-protector" make check V=1
39
39
40
40
check-x32 :
41
- runs-on : ubuntu-latest
41
+ runs-on : ubuntu-20.04 # ubuntu- latest == ubuntu-22.04 have issues currently with x32
42
42
steps :
43
43
- uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag=v3
44
44
- name : make check on x32 ABI # https://en.wikipedia.org/wiki/X32_ABI
Original file line number Diff line number Diff line change @@ -38,11 +38,15 @@ include_directories(${LIBRARY_DIR} ${LIBRARY_DIR}/common)
38
38
39
39
file (GLOB CommonSources ${LIBRARY_DIR} /common/*.c)
40
40
file (GLOB CompressSources ${LIBRARY_DIR} /compress/*.c)
41
+ file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
41
42
if (MSVC )
42
- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c)
43
43
add_compile_options (-DZSTD_DISABLE_ASM)
44
44
else ()
45
- file (GLOB DecompressSources ${LIBRARY_DIR} /decompress/*.c ${LIBRARY_DIR} /decompress/*.S)
45
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|AMD64.*|x86_64.*|X86_64.*" )
46
+ set (DecompressSources ${DecompressSources} ${LIBRARY_DIR} /decompress/huf_decompress_amd64.S)
47
+ else ()
48
+ add_compile_options (-DZSTD_DISABLE_ASM)
49
+ endif ()
46
50
endif ()
47
51
file (GLOB DictBuilderSources ${LIBRARY_DIR} /dictBuilder/*.c)
48
52
file (GLOB DeprecatedSources ${LIBRARY_DIR} /deprecated/*.c)
You can’t perform that action at this time.
0 commit comments