mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
fix: windows clang build (#719)
* Update settings.cmake Fix the issue where debugging on Windows in VSCode doesn’t work * fix: windows clang build The following flags are not supported in non-MSVC environments /EHsc /wd4141 /wd4146 /wd4180 /wd4244 /wd4258 /wd4267 /wd4291 /wd4345 /wd4351 /wd4355 /wd4456 /wd4457 /wd4458 /wd4459 /wd4503 /wd4624 /wd4722 /wd4800 /wd4100 /wd4127 /wd4512 /wd4505 /wd4610 /wd4510 /wd4702 /wd4245 /wd4706 /wd4310 /wd4701 /wd4703 /wd4389 /wd4611 /wd4805 /wd4204 /wd4577 /wd4091 /wd4592 /wd4324 Update cmake_minimum_required(VERSION 3.21) to remove CMake warning.
This commit is contained in:
+4
-1
@@ -143,7 +143,7 @@ target_include_directories(remill_settings INTERFACE
|
||||
$<BUILD_INTERFACE:${LLVM_INCLUDE_DIR}>
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND MSVC)
|
||||
# warnings and compiler settings
|
||||
target_compile_options(remill_settings INTERFACE
|
||||
"$<$<CONFIG:Debug>:/MDd>$<$<CONFIG:Release>:/MD>"
|
||||
@@ -167,6 +167,9 @@ if(WIN32)
|
||||
|
||||
else()
|
||||
# warnings and compiler settings
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_compile_options(remill_settings INTERFACE -fPIC)
|
||||
endif()
|
||||
target_compile_options(remill_settings INTERFACE
|
||||
-Wall -Wextra -Wno-unused-parameter -Wno-c++98-compat
|
||||
-Wno-unreachable-code-return -Wno-nested-anon-types
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
project(remill-lift)
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
|
||||
#
|
||||
# target settings
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
|
||||
function(GetTargetTree output_variable)
|
||||
if(${ARGC} LESS 1)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(arm_runtime)
|
||||
|
||||
set(ARMRUNTIME_SOURCEFILES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(AARCH64_runtime)
|
||||
|
||||
set(AARCH64RUNTIME_SOURCEFILES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(ppc_runtime)
|
||||
|
||||
set(PPCRUNTIME_SOURCEFILES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(sparc32_runtime)
|
||||
|
||||
set(SPARC32RUNTIME_SOURCEFILES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(sparc64_runtime)
|
||||
|
||||
set(SPARC64RUNTIME_SOURCEFILES
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(x86_runtime)
|
||||
|
||||
set(X86RUNTIME_SOURCEFILES
|
||||
|
||||
Reference in New Issue
Block a user