forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[simdjson] Fix error LNK2001 when compile with /fsanitize=address in …
…MSVC (microsoft#11495) * [simdjson] Fix error LNK2001 when compile with /fsanitize=address * Update ports/simdjson/portfile.cmake Co-authored-by: NancyLi1013 <[email protected]> * Update ports/simdjson/portfile.cmake Co-authored-by: NancyLi1013 <[email protected]> * Update ports/simdjson/portfile.cmake * Update ports/simdjson/portfile.cmake * Update ports/simdjson/portfile.cmake Co-authored-by: Cheney-Wang <[email protected]> Co-authored-by: NancyLi1013 <[email protected]>
- Loading branch information
1 parent
4694b88
commit 9dde75b
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: simdjson | ||
Version: 2019-12-27 | ||
Version: 2019-12-27-1 | ||
Description: A extremely fast JSON library that can parse gigabytes of JSON per second | ||
Homepage: https://github.com/lemire/simdjson | ||
Supports: !(x86|arm|arm64) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/tools/cmake/FindOptions.cmake b/tools/cmake/FindOptions.cmake | ||
index f9854c1..0c4d331 100644 | ||
--- a/tools/cmake/FindOptions.cmake | ||
+++ b/tools/cmake/FindOptions.cmake | ||
@@ -4,9 +4,9 @@ endmacro(append) | ||
|
||
set(SANITIZE_FLAGS "") | ||
if(SIMDJSON_SANITIZE) | ||
- set(SIMDJSON_SANITIZE_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all") | ||
if (CMAKE_COMPILER_IS_GNUCC) | ||
# Ubuntu bug for GCC 5.0+ (safe for all versions) | ||
+ set(SIMDJSON_SANITIZE_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all") | ||
append(CMAKE_EXE_LINKER_FLAGS "-fuse-ld=gold") | ||
append(CMAKE_SHARED_LINKER_FLAGS "-fuse-ld=gold") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters