fix clang

This commit is contained in:
David Markowitz 2024-12-03 11:58:36 -08:00
parent 218a3f2d0d
commit 3bd9180e98
3 changed files with 117 additions and 109 deletions

View File

@ -84,7 +84,14 @@ if(UNIX)
elseif(MSVC)
# Skip warning for invalid conversion from size_t to uint32_t for all targets below for now
# Also disable non-portable MSVC volatile behavior
add_compile_options("/wd4267" "/utf-8" "/volatile:iso" "/Zc:inline")
add_compile_options("/wd4267" "/utf-8" "/volatile:iso" "/Zc:inline" "/D_CRT_NONSTDC_NO_WARNINGS")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-Wno-error=implicit-function-declaration")
add_compile_options("-Wno-error=int-conversion")
add_compile_options("-fno-lto")
add_compile_options("-ferror-limit=0")
MESSAGE(STATUS "HELLO")
endif()
elseif(WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()

View File

@ -61,7 +61,14 @@
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64"
}
},
"toolset": "ClangCL"
},
{
"name": "windows-default",

View File

@ -14,10 +14,4 @@ target_include_directories(WorldServer PRIVATE
)
target_link_libraries(WorldServer ${COMMON_LIBRARIES}
dScripts
dGameBase
dComponents
dUtilities
dGameMessages
dInventory
dGame dChatFilter dZoneManager dPhysics Detour Recast tinyxml2 dWorldServer dNavigation dServer)
dScripts dGame dChatFilter dZoneManager dPhysics Detour Recast tinyxml2 dWorldServer dNavigation dServer)