Skip to content

Commit

Permalink
Fixed Linux compilation issue
Browse files Browse the repository at this point in the history
- by adding buildoptions -march=native and -msha
  • Loading branch information
baderouaich committed Feb 6, 2021
1 parent 9630c79 commit 7fa2d36
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 27 deletions.
11 changes: 8 additions & 3 deletions Dependencies/cryptopp/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ project "cryptopp"
NEON, Aarch32, Aarch64, Power4, Power7 or Power8.
#define CRYPTOPP_DISABLE_ASM 1
]]
--"CRYPTOPP_DISABLE_SHA",
--"CRYPTOPP_DISABLE_ASM=1",
--"CRYPTOPP_ENABLE_NAMESPACE_WEAK", -- enable only when using MD5 to disable warning 'You may be using a weak algorithm that has been retained for backwards compatibility...'
--"CRYPTOPP_IMPORTS", -- for static build
Expand Down Expand Up @@ -91,7 +90,7 @@ project "cryptopp"
{
"ws2_32"
}

--vectorextensions "SSE2"

filter "system:linux"
defines
Expand All @@ -100,6 +99,12 @@ project "cryptopp"
links
{
}
buildoptions
{
"-march=native", --compile for machine processor # https://stackoverflow.com/questions/18868235/preventing-gcc-from-automatically-using-avx-and-fma-instructions-when-compiled-w/25911959#25911959
"-msha", -- # https://github.com/weidai11/cryptopp/issues/834
}
--vectorextensions "AVX"

filter "system:macosx"
defines
Expand All @@ -124,4 +129,4 @@ project "cryptopp"
filter "configurations:Dist"
runtime "Release"
optimize "Full" -- Full optimization.
inlining "Auto" -- Inline any suitable function for full performance
inlining "Auto" -- Inline any suitable function for full performance
22 changes: 0 additions & 22 deletions Enigma.log

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<!--LOGO-->
<!-- ![Enigma](Resources/Branding/EnigmaLogoWolf_860x869.png) -->
<img src="Resources/Branding/EnigmaLogoWolf_860x869.png" width="330"/>

<!-- <img src="Resources/Branding/EnigmaLogoWolf_860x869.png" width="330"/> -->
<img src="Resources/Branding/Wolf2.png" width="333"/>

<!--DESCRIOTION-->
A Simple, Reliable and Efficient UI + CLI Encryption Tool
Expand Down
4 changes: 4 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ contain personal details like your social-security number, in online storage or
to someone, you may want to use encryption. Almost all of your personal files likely don't
require this sort of encryption, though.


- exclude catch sources on release & dist
Fixed Linux compilation issue
- by adding buildoptions -march=native and -msha

0 comments on commit 7fa2d36

Please sign in to comment.