diff options
| author | Cheney Wang <38240633+Cheney-W@users.noreply.github.com> | 2020-05-27 13:15:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 22:15:05 -0700 |
| commit | 9dde75b92a95f100b9eb58844a44294d1be2797d (patch) | |
| tree | cdfab638e60bc97abbff6b8428763524d06cdaac /ports/simdjson/Fix-error-LNK2001.patch | |
| parent | 4694b885a2d681e5b0c7b54276d665f569249962 (diff) | |
| download | vcpkg-9dde75b92a95f100b9eb58844a44294d1be2797d.tar.gz vcpkg-9dde75b92a95f100b9eb58844a44294d1be2797d.zip | |
[simdjson] Fix error LNK2001 when compile with /fsanitize=address in MSVC (#11495)
* [simdjson] Fix error LNK2001 when compile with /fsanitize=address
* Update ports/simdjson/portfile.cmake
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Update ports/simdjson/portfile.cmake
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Update ports/simdjson/portfile.cmake
* Update ports/simdjson/portfile.cmake
* Update ports/simdjson/portfile.cmake
Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/simdjson/Fix-error-LNK2001.patch')
| -rw-r--r-- | ports/simdjson/Fix-error-LNK2001.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/simdjson/Fix-error-LNK2001.patch b/ports/simdjson/Fix-error-LNK2001.patch new file mode 100644 index 000000000..d7dd61a2d --- /dev/null +++ b/ports/simdjson/Fix-error-LNK2001.patch @@ -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()
|
