summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2018-10-31 17:56:38 -0700
committerGitHub <noreply@github.com>2018-10-31 17:56:38 -0700
commitbd5cc690bca0c798952b14b989ad1bf8e8f00011 (patch)
tree5c5a39659f20dabafa194a9d07134d54cd07b666 /src/pal
parent8aa5101cea45183e882326f465007909d1b862a0 (diff)
downloadcoreclr-bd5cc690bca0c798952b14b989ad1bf8e8f00011.tar.gz
coreclr-bd5cc690bca0c798952b14b989ad1bf8e8f00011.tar.bz2
coreclr-bd5cc690bca0c798952b14b989ad1bf8e8f00011.zip
Clean up string literal implicit const casting and some two-phase lookup nits on Windows (#20730)
* Remove implicit c-string const casting and clean up some C++ standards conformance bugs. * Fix const string conversion in FCSigCheck.
Diffstat (limited to 'src/pal')
-rw-r--r--src/pal/tools/windows-compiler-override.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pal/tools/windows-compiler-override.txt b/src/pal/tools/windows-compiler-override.txt
index f6cb16856c..8ed5c5b125 100644
--- a/src/pal/tools/windows-compiler-override.txt
+++ b/src/pal/tools/windows-compiler-override.txt
@@ -1,10 +1,10 @@
-SET (CMAKE_C_FLAGS_INIT "/Wall /FC")
+SET (CMAKE_C_FLAGS_INIT "/Wall /FC /Zc:strictStrings")
SET (CMAKE_C_FLAGS_DEBUG_INIT "/Od /Zi")
SET (CLR_C_FLAGS_CHECKED_INIT "/O1 /Zi")
SET (CMAKE_C_FLAGS_RELEASE_INIT "/Ox /Zi")
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/O2 /Zi")
-SET (CMAKE_CXX_FLAGS_INIT "/Wall /FC")
+SET (CMAKE_CXX_FLAGS_INIT "/Wall /FC /Zc:strictStrings")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "/Od /Zi")
SET (CLR_CXX_FLAGS_CHECKED_INIT "/O1 /Zi")
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "/Ox /Zi")
@@ -13,4 +13,4 @@ SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "/O2 /Zi")
SET (CLR_DEFINES_DEBUG_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Checked BUILDENV_CHECKED=1)
SET (CLR_DEFINES_CHECKED_INIT DEBUG _DEBUG _DBG URTBLDENV_FRIENDLY=Checked BUILDENV_CHECKED=1)
SET (CLR_DEFINES_RELEASE_INIT NDEBUG URTBLDENV_FRIENDLY=Retail)
-SET (CLR_DEFINES_RELWITHDEBINFO_INIT NDEBUG URTBLDENV_FRIENDLY=Retail) \ No newline at end of file
+SET (CLR_DEFINES_RELWITHDEBINFO_INIT NDEBUG URTBLDENV_FRIENDLY=Retail)