mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
test with gh workflows
This commit is contained in:
parent
8e5392784d
commit
de5569eeaf
3 changed files with 9 additions and 7 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -18,4 +18,4 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install build-essential libboost1.74-dev libminiupnpc-dev libssl-dev zlib1g-dev
|
||||
- name: build application
|
||||
run: make USE_AVX=no USE_AESNI=no USE_UPNP=${{ matrix.with_upnp }} -j3
|
||||
run: make USE_UPNP=${{ matrix.with_upnp }} -j3
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
USE_WIN32_APP=yes
|
||||
CXX = g++
|
||||
WINDRES = windres
|
||||
CXXFLAGS := ${CXX_DEBUG} -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN -fPIC
|
||||
CXXFLAGS := ${CXX_DEBUG} -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN -fPIC -msse
|
||||
INCFLAGS = -Idaemon -I.
|
||||
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++
|
||||
|
||||
|
|
|
@ -35,11 +35,13 @@ namespace cpu
|
|||
__cpuid(0, info[0], info[1], info[2], info[3]);
|
||||
if (info[0] >= 0x00000001) {
|
||||
__cpuid(0x00000001, info[0], info[1], info[2], info[3]);
|
||||
if (__builtin_cpu_supports("aes") && AesSwitch) {
|
||||
aesni = info[2] & bit_AES; // AESNI
|
||||
#ifdef __AES__
|
||||
if ((info[2] & bit_AES || __builtin_cpu_supports("aes")) && AesSwitch) {
|
||||
aesni = true; // AESNI
|
||||
}
|
||||
if (__builtin_cpu_supports("avx") && AvxSwitch) {
|
||||
avx = info[2] & bit_AVX; // AVX
|
||||
#endif // __AES__
|
||||
if ((info[2] & bit_AVX || __builtin_cpu_supports("avx")) && AvxSwitch) {
|
||||
avx = true; // AVX
|
||||
}
|
||||
}
|
||||
#endif // defined(__x86_64__) || defined(__i386__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue