File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,21 @@ sources:
35
35
patches :
36
36
" 1.5.2 " :
37
37
- patch_file : " patches/1.5.2-cmake-remove-asm-except-x86_64.patch"
38
+ - patch_file : " patches/1.5.0-remove-explicit-standard-setting.patch"
39
+ patch_description : " fix strange performance and scalability issues"
40
+ patch_type : " backport"
41
+ patch_source : " https://github.com/facebook/zstd/pull/3167"
38
42
" 1.5.1 " :
39
43
- patch_file : " patches/1.5.1-cmake-remove-asm-except-x86_64.patch"
44
+ - patch_file : " patches/1.5.0-remove-explicit-standard-setting.patch"
45
+ patch_description : " fix strange performance and scalability issues"
46
+ patch_type : " backport"
47
+ patch_source : " https://github.com/facebook/zstd/pull/3167"
48
+ " 1.5.0 " :
49
+ - patch_file : " patches/1.5.0-remove-explicit-standard-setting.patch"
50
+ patch_description : " fix strange performance and scalability issues"
51
+ patch_type : " backport"
52
+ patch_source : " https://github.com/facebook/zstd/pull/3167"
40
53
" 1.4.5 " :
41
54
- patch_file : " patches/1.4.5-cmake-install-dll.patch"
42
55
" 1.3.5 " :
Original file line number Diff line number Diff line change
1
+ diff --git a/a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake b/b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
2
+ index e23b9d6..8d04458 100644
3
+ --- a/a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
4
+ +++ b/b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
5
+ @@ -22,10 +22,12 @@ endfunction()
6
+
7
+ macro(ADD_ZSTD_COMPILATION_FLAGS)
8
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" OR MINGW) #Not only UNIX but also WIN32 for MinGW
9
+ - #Set c++11 by default
10
+ - EnableCompilerFlag("-std=c++11" false true)
11
+ - #Set c99 by default
12
+ - EnableCompilerFlag("-std=c99" true false)
13
+ + # It's possible to select the exact standard used for compilation.
14
+ + # It's not necessary, but can be employed for specific purposes.
15
+ + # Note that zstd source code is compatible with both C++98 and above
16
+ + # and C-gnu90 (c90 + long long + variadic macros ) and above
17
+ + # EnableCompilerFlag("-std=c++11" false true) # Set C++ compilation to c++11 standard
18
+ + # EnableCompilerFlag("-std=c99" true false) # Set C compiation to c99 standard
19
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND MSVC)
20
+ # clang-cl normally maps -Wall to -Weverything.
21
+ EnableCompilerFlag("/clang:-Wall" true true)
You can’t perform that action at this time.
0 commit comments