Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/timw/funsigned-char-build'
Browse files Browse the repository at this point in the history
* origin/topic/timw/funsigned-char-build:
  Add /J flag on Windows to force unsigned char
  Pass -funsigned-char flag during compilation
  • Loading branch information
timwoj committed Jul 2, 2023
2 parents e786f9d + bbd747d commit a4aadc5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.8.0-9 | 2023-07-02 14:51:55 -0700

* Add /J flag on Windows to force unsigned char (Tim Wojtulewicz, Corelight)

* Pass -funsigned-char flag during compilation (Tim Wojtulewicz, Corelight)

1.8.0-6 | 2023-06-22 11:02:37 -0700

* Force -std=c++17 mode for cmake targets, remove use of RequireCXX17.cmake (Tim Wojtulewicz, Corelight)
Expand Down
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ FindRequiredPackage(BISON)
FindRequiredPackage(FLEX)

if ( MISSING_PREREQS )
foreach (prereq ${MISSING_PREREQ_DESCS})
message(SEND_ERROR ${prereq})
endforeach ()
message(FATAL_ERROR "Configuration aborted due to missing prerequisites")
foreach (prereq ${MISSING_PREREQ_DESCS})
message(SEND_ERROR ${prereq})
endforeach ()
message(FATAL_ERROR "Configuration aborted due to missing prerequisites")
endif ()

if (MSVC)
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
add_compile_options(/J) # Similar to -funsigned-char on other platforms
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "/wd4018")
else()
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
set_property(SOURCE bif_lex.cc APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-sign-compare")
endif()

include_directories(BEFORE
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.0-6
1.8.0-9
2 changes: 1 addition & 1 deletion cmake

0 comments on commit a4aadc5

Please sign in to comment.