[PATCH] D117145: [CMake] Option -fno-shrink-wrap is incorrectly handled

Luís Ferreira via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 12:39:42 PDT 2022


ljmf00 updated this revision to Diff 434565.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117145/new/

https://reviews.llvm.org/D117145

Files:
  llvm/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -337,7 +337,7 @@
   endif()
   # GCC for MIPS can miscompile LLVM due to PR37701.
   if(CMAKE_COMPILER_IS_GNUCXX AND LLVM_NATIVE_ARCH STREQUAL "Mips" AND
-         NOT Uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
+         NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
     add_flag_or_print_warning("-fno-shrink-wrap" FNO_SHRINK_WRAP)
   endif()
   # gcc with -O3 -fPIC generates TLS sequences that violate the spec on


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117145.434565.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220606/fafe963b/attachment.bin>


More information about the llvm-commits mailing list