Commit Graph

235 Commits

Author SHA1 Message Date
Username404 d4af5fecd9
CMakeLists.txt: Allow memory growth on emscripten 2022-09-30 08:12:41 +02:00
Username404 cb3e1b75ae
CMakeLists.txt: Disable SAFE_HEAP when using emscripten on Android
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-09-29 20:32:43 +02:00
Username404 8091d92933
CMakeLists.txt: Set CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE to YES when using a llvm-mingw toolchain
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-28 15:15:07 +02:00
Username404 62652ad9a4
CMakeLists.txt: Don't redefine CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE if it has already been defined
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-27 21:59:39 +02:00
Username404 d2a83a2f5e
CMakeLists.txt: Use ThinLTO instead of full LTO when Clang is present
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-27 21:33:48 +02:00
Username404 c55dbb25a6
CMakeLists.txt: Reintroduce CXX_TARGET
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-24 18:09:52 +02:00
Username404 ab2b666dd3
CMakeLists.txt: Improve CPACK_PACKAGE_FILE_NAME
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-24 18:09:52 +02:00
Username404 7846634165
CMakeLists.txt: Remove PNAME + CXX_TARGET, set CPACK_PACKAGE_FILE_NAME only once and let rpmbuild and the CPack Deb generator decide what file name to use
Jenkinsfile: Remove the buildTarget function's architecture-related parameters
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-24 02:31:26 +02:00
Username404 0fbe69ba91
Don't reuse CMAKE_EXE_LINKER_FLAGS_RELEASE when setting it to "-s"
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-23 19:18:48 +02:00
Username404 4795bd54a0
Parser.hpp: Replace the try-catch statement at line 152 with a condition since this seems to fix bad_cast not being caught when running a windows executable which has been compressed using upx
CMakeLists.txt: Revert the 89888113 commit and don't check CMAKE_CXX_LINK_NO_PIE_SUPPORTED when mingw is in use

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-20 13:35:01 +02:00
Username404 a98cd3e534
CMakeLists.txt: Set CMAKE_UNITY_BUILD to TRUE by default
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-13 14:41:19 +00:00
Username404 b8bb1181d1
CMakeLists.txt: Disable UPX when position-dependent executables are not supported by the compiler
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-13 14:41:19 +00:00
Username404 3e6b6f9560
CMakeLists.txt: Notify the user about position-independent code being unsupported only when it has been manually enabled
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-08 14:45:48 +02:00
Username404 fec8a2c4bd
CMakeLists.txt: Notify the user when CMAKE_POSITION_INDEPENDENT_CODE was defined on the command line although UPX is in use
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-08 14:45:48 +02:00
Username404 510e7a24f3
CMakeLists.txt: Don't set CMAKE_POSITION_INDEPENDENT_CODE to TRUE if it is already defined
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-08 14:45:48 +02:00
Username404 efe7d8ca57
CMakeLists.txt: Disable PIE when using UPX since executables seem to crash on some systems when it is enabled
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-08 14:45:07 +02:00
Username404 a9d460d096
CMakeLists.txt: Set CMAKE_COLOR_DIAGNOSTICS to ON
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-08 11:22:36 +02:00
Username404 f8010ea2b0
CMakeLists.txt: Pass "-s" to the linker instead of passing it to the compiler
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-03 11:37:42 +02:00
Username404 44d4ffb2ee
CMakeLists.txt: Always strip executables when the build type is release
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-02 19:54:28 +02:00
Username404 da3af239c9
CMakeLists.txt: Add a note about UPX
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-08-02 19:39:52 +02:00
Username404 a21eecb0b3
CMakeLists.txt: Fix two indentation errors
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-30 00:01:23 +02:00
Username404 7032695867
CMakeLists.txt: Always use the uppercase build type for comparisons 2022-07-29 12:47:28 +02:00
Username404 7b28ff50b8
CMakeLists.txt: Use strings when doing STREQUAL comparisons, and compare variables instead of their content for IS_GNU and IS_CLANG 2022-07-29 12:40:52 +02:00
Username404 2104f6e804
CMakeLists.txt: Fix the SELF_PACKER_FOR_EXECUTABLE check 2022-07-29 12:22:35 +02:00
Username404 b648a8baba
CMakeLists.txt: Make sure exceptions are enabled when emscripten is in use
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-25 12:33:56 +02:00
Username404 3ca51f450f
CMakeLists.txt: Make sure MINIMAL_RUNTIME is set to 0 when emscripten is in use
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-25 12:33:11 +02:00
Username404 4e08c0cf05
Implement reserved identifiers
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-06 15:35:21 +02:00
Username404 7baac757d2
CMakeLists.txt: Use PROJECT_NAME in more places for consistency
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-23 22:49:18 +02:00
Username404 6ddf9a5dd2
Revert "Jenkinsfile: Set CPACK_STRIP_FILES to FALSE"
This reverts commit 84add6cb

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-18 14:45:59 +02:00
Username404 84add6cbde
Jenkinsfile: Set CPACK_STRIP_FILES to FALSE
CMakeLists.txt: Don't redefine CPACK_STRIP_FILES if it is already
defined

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-11 19:07:02 +02:00
Username404 89888113e7
CMakeLists.txt: Disable UPX when using a mingw toolchain, else the produced executable crashes at runtime
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-11 17:39:26 +02:00
Username404 faf15b4ccf
CMakeLists.txt: Add "--best" to the flags for UPX
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-11 16:26:46 +02:00
Username404 4f2f4a7fa9
CMakeLists.txt: Remove a few useless symbols in a condition
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-11 16:12:03 +02:00
Username404 7b6e2165ba
CMakeLists.txt: Find a self-packer and use it if it's found (except when CMAKE_BUILD_TYPE is set to Debug or RelWithDebInfo)
Add the --ultra-brute flag when upx is found

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-11 16:11:11 +02:00
Username404 1469d92bdf
CMakeLists.txt: Don't link against OpenMP when using static linking
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-06-10 20:02:34 +02:00
Username404 f0128bf0c3
CMakeLists.txt: Use the standard C++ exception handling model on MSVC
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-20 17:14:14 +02:00
Username404 dfb2ac8062
CMakeLists.txt: Fix template errors on MSVC
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-20 17:11:14 +02:00
Username404 dcd3354604
CMakeLists.txt: Make sure conforming mode is enabled when using MSVC
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-20 17:10:56 +02:00
Username404 16eeea2524
Target.hpp: Use reinterpret_cast instead of dynamic_cast
CMakeLists.txt: Disable the reinterpret-base-class warning when using Clang

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-18 19:17:48 +02:00
Username404 394fbec4c9
CMakeLists.txt: Disable the "unused command line argument" warning on MinGW toolchains
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-14 16:54:28 +02:00
Username404 617837fb91
CMakeLists.txt: Suppress the unqualified std cast call warning on clang 15 and higher
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-14 16:51:13 +02:00
Username404 7dadd216a7
CMakeLists.txt: Add "-fweb" to the flags for G++
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-14 16:42:03 +02:00
Username404 bf321d7465
CMakeLists.txt: Add "-flto-partition=none" to CMAKE_CXX_FLAGS_RELEASE when using G++ and interprocedural optimization
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-14 16:39:36 +02:00
Username404 b96b487882
Add a "IGNORE_MINIMAL_COMPILER_VERSION" option to the CMakeLists.txt file
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 bcda5c9b32
Revert "Set NODERAWFS to 1 when using emscripten toolchains to use the raw filesystem backend"
This reverts commit 82b3e2a5

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 30c9515106
Turn on strict mode on emscripten toolchains
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 38fa99155b
Set NODERAWFS to 1 when using emscripten toolchains to use the raw filesystem backend
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 dadfea85eb
Set NODEJS_CATCH_EXIT to 0 since it is not needed
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 660f73a3d2
Specify the environments to support by default with emscripten toolchains
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00
Username404 feb6aedde0
Add "-sJS_MATH=1" to the default flags for emscripten toolchains
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:09 +02:00