[compiler-rt] r203911 - [CMake] Add trailing newline to test source file to make sure -Wnewline-eof doesn't fire

Alexey Samsonov samsonov at google.com
Fri Mar 14 02:22:30 PDT 2014


Author: samsonov
Date: Fri Mar 14 04:22:29 2014
New Revision: 203911

URL: http://llvm.org/viewvc/llvm-project?rev=203911&view=rev
Log:
[CMake] Add trailing newline to test source file to make sure -Wnewline-eof doesn't fire

Modified:
    compiler-rt/trunk/CMakeLists.txt

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=203911&r1=203910&r2=203911&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Fri Mar 14 04:22:29 2014
@@ -173,7 +173,7 @@ endfunction()
 # runtime libraries supported by our current compilers cross-compiling
 # abilities.
 set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.c)
-file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\nint main() {}")
+file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\nint main() {}\n")
 
 # test_target_arch(<arch> <target flags...>)
 # Sets the target flags for a given architecture and determines if this





More information about the llvm-commits mailing list