Skip to content

Commit e46d2db

Browse files
authored
Remove the hardcoded CFLAGS for GCC/LLVM (#334)
This causes build failures when for cross compiled embedded system. For instance, when the position independent code is not configured the same way. It also prevents using `-Os` instead of `-O2`
1 parent 37a1f8b commit e46d2db

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ endif()
3838

3939
target_compile_definitions(utf8proc PRIVATE "UTF8PROC_EXPORTS")
4040

41-
if (NOT MSVC)
42-
set_target_properties(
43-
utf8proc PROPERTIES
44-
COMPILE_FLAGS "-O2 -std=c99 -pedantic -Wall"
45-
)
46-
endif ()
47-
4841
set_target_properties (utf8proc PROPERTIES
4942
POSITION_INDEPENDENT_CODE ON
5043
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"

0 commit comments

Comments
 (0)