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 update
|
||||||
sudo apt-get install build-essential libboost1.74-dev libminiupnpc-dev libssl-dev zlib1g-dev
|
sudo apt-get install build-essential libboost1.74-dev libminiupnpc-dev libssl-dev zlib1g-dev
|
||||||
- name: build application
|
- 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
|
USE_WIN32_APP=yes
|
||||||
CXX = g++
|
CXX = g++
|
||||||
WINDRES = windres
|
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.
|
INCFLAGS = -Idaemon -I.
|
||||||
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++
|
LDFLAGS := ${LD_DEBUG} -Wl,-Bstatic -static-libgcc -static-libstdc++
|
||||||
|
|
||||||
|
|
|
@ -35,14 +35,16 @@ namespace cpu
|
||||||
__cpuid(0, info[0], info[1], info[2], info[3]);
|
__cpuid(0, info[0], info[1], info[2], info[3]);
|
||||||
if (info[0] >= 0x00000001) {
|
if (info[0] >= 0x00000001) {
|
||||||
__cpuid(0x00000001, info[0], info[1], info[2], info[3]);
|
__cpuid(0x00000001, info[0], info[1], info[2], info[3]);
|
||||||
if (__builtin_cpu_supports("aes") && AesSwitch) {
|
#ifdef __AES__
|
||||||
aesni = info[2] & bit_AES; // AESNI
|
if ((info[2] & bit_AES || __builtin_cpu_supports("aes")) && AesSwitch) {
|
||||||
|
aesni = true; // AESNI
|
||||||
}
|
}
|
||||||
if (__builtin_cpu_supports("avx") && AvxSwitch) {
|
#endif // __AES__
|
||||||
avx = info[2] & bit_AVX; // AVX
|
if ((info[2] & bit_AVX || __builtin_cpu_supports("avx")) && AvxSwitch) {
|
||||||
|
avx = true; // AVX
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // defined(__x86_64__) || defined(__i386__)
|
#endif // defined(__x86_64__) || defined(__i386__)
|
||||||
|
|
||||||
LogPrint(eLogInfo, "AESNI ", (aesni ? "enabled" : "disabled"));
|
LogPrint(eLogInfo, "AESNI ", (aesni ? "enabled" : "disabled"));
|
||||||
LogPrint(eLogInfo, "AVX ", (avx ? "enabled" : "disabled"));
|
LogPrint(eLogInfo, "AVX ", (avx ? "enabled" : "disabled"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue