mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[c89stringutils] remove forced flags (#26249)
* c89stringutils remove flags * v db * remove code * v db
This commit is contained in:
parent
e4f8bbe3cf
commit
28effe75c4
20
ports/c89stringutils/no_flags.patch
Normal file
20
ports/c89stringutils/no_flags.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0ce714554..f9f28b890 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -18,15 +18,7 @@ target_compile_features("${PROJECT_NAME}_compiler_flags" INTERFACE "c_std_${CMAK
|
||||
set(gcc_like "$<COMPILE_LANG_AND_ID:C,CXX,ARMClang,AppleClang,Clang,GNU,LCC>")
|
||||
set(msvc "$<COMPILE_LANG_AND_ID:C,CXX,MSVC>")
|
||||
# -g -fsanitize=address -fno-omit-frame-pointer
|
||||
-target_compile_options(
|
||||
- "${PROJECT_NAME}_compiler_flags"
|
||||
- INTERFACE
|
||||
- "$<${gcc_like}:$<BUILD_INTERFACE:-Wall;-Wextra;-Wshadow;-Wformat=2;-Wunused;-pedantic>>"
|
||||
- "$<${msvc}:$<BUILD_INTERFACE:-W3;-WX;-Zi;-permissive->>"
|
||||
-)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
|
||||
- set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
|
||||
- set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
|
||||
endif (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
|
||||
|
||||
# configure a header file to pass the version number only
|
@ -4,6 +4,8 @@ vcpkg_from_github(
|
||||
REF 375c87aaf50a945b17a76727f3314eb217897caf
|
||||
SHA512 395d942a133209daf510094814830e35daf2047c35b0ff15b17051d7095e4598fd830e0e7f763cac6929b867ff3b0c03c5350c4c3cfc68ed98b69c9c68c04be0
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
no_flags.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "c89stringutils",
|
||||
"version": "0.0.1",
|
||||
"port-version": 1,
|
||||
"description": "string functions from newer standards / common non-standards for C89",
|
||||
"license": "Apache-2.0 OR MIT",
|
||||
"supports": "!uwp",
|
||||
|
@ -1234,7 +1234,7 @@
|
||||
},
|
||||
"c89stringutils": {
|
||||
"baseline": "0.0.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"c9y": {
|
||||
"baseline": "0.4.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e4c282e10d69a020f581a2bd7b8d8ead1e29d9a2",
|
||||
"version": "0.0.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "9c5dcb3c6cf4442e2fdcb4cdea39f512db0ead54",
|
||||
"version": "0.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user