[PATCH] D67628: [compiler-rt][crt] make test case nontrivial in check_cxx_section_exists
Jian Cai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 14:46:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL372038: [compiler-rt][crt] make test case nontrivial in check_cxx_section_exists (authored by jcai19, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D67628?vs=220383&id=220394#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67628/new/
https://reviews.llvm.org/D67628
Files:
compiler-rt/trunk/lib/crt/CMakeLists.txt
Index: compiler-rt/trunk/lib/crt/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/crt/CMakeLists.txt
+++ compiler-rt/trunk/lib/crt/CMakeLists.txt
@@ -70,7 +70,7 @@
endfunction()
check_cxx_section_exists(".init_array" COMPILER_RT_HAS_INITFINI_ARRAY
- SOURCE "__attribute__((constructor)) void f() {}\nint main() { return 0; }\n")
+ SOURCE "volatile int x;\n__attribute__((constructor)) void f() {x = 0;}\nint main() { return 0; }\n")
append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 CRT_CFLAGS)
append_list_if(COMPILER_RT_HAS_INITFINI_ARRAY -DCRT_HAS_INITFINI_ARRAY CRT_CFLAGS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67628.220394.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190916/1ab75948/attachment.bin>
More information about the llvm-commits
mailing list