Skip to content

Commit

Permalink
build: reset LLVM warning flags
Browse files Browse the repository at this point in the history
LLVM unfortunately defines global compile flags that are inherited by all other targets in the project, including fetched dependencies. Warning flags, with are functionally unnecessary, can cause conflicts with other targets.

fix #251
  • Loading branch information
alandefreitas authored and sdkrystian committed Jun 16, 2023
1 parent 8a0bb97 commit f6c5346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(HandleLLVMOptions)
add_definitions(${LLVM_DEFINITIONS})
llvm_map_components_to_libnames(llvm_libs all)
string(REGEX REPLACE " /W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REGEX REPLACE " /W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

# Duktape
if(NOT DEFINED DUKTAPE_SOURCE_ROOT)
Expand Down

0 comments on commit f6c5346

Please sign in to comment.