Add a SWIFT_RUNTIME_CHECKS option to the CMake build.
Add a SWIFT_RUNTIME_CHECKS option to the CMake build.

When enabled it builds the libraries with runtime checks disabled. This still isn't quite ready for prime time, because it breaks a few tests and breaks diagnostics. The StripRuntimeChecks pass needs to be applied to libraries after the SIL has been serialized, or something like that, in order for the checks in the stdlib to be preserved.

Swift SVN r12393

IngmarStein/swift,jmgc/swift,hooman/swift,shahmishal/swift,atrick/swift,lorentey/swift,brentdax/swift,kentya6/swift,kentya6/swift,sdulal/swift,manavgabhawala/swift,gottesmm/swift,tinysun212/swift-windows,danielmartin/swift,apple/swift,shahmishal/swift,return/swift,JaSpa/swift,zisko/swift,arvedviehweger/swift,danielmartin/swift,nathawes/swift,gribozavr/swift,xwu/swift,lorentey/swift,huonw/swift,johnno1962d/swift,amraboelela/swift,gregomni/swift,lorentey/swift,roambotics/swift,LeoShimonaka/swift,jopamer/swift,jckarter/swift,brentdax/swift,alblue/swift,shahmishal/swift,tardieu/swift,dreamsxin/swift,ahoppen/swift,milseman/swift,roambotics/swift,gmilos/swift,sdulal/swift,tjw/swift,shahmishal/swift,djwbrown/swift,kusl/swift,Ivacker/swift,nathawes/swift,CodaFi/swift,danielmartin/swift,jckarter/swift,cbrentharris/swift,allevato/swift,ahoppen/swift,harlanhaskins/swift,kusl/swift,bitjammer/swift,sschiau/swift,swiftix/swift,ben-ng/swift,hughbe/swift,sschiau/swift,emilstahl/swift,khizkhiz/swift,gottesmm/swift,sdulal/swift,kusl/swift,karwa/swift,deyton/swift,harlanhaskins/swift,harlanhaskins/swift,airspeedswift/swift,frootloops/swift,arvedviehweger/swift,jtbandes/swift,Ivacker/swift,codestergit/swift,manavgabhawala/swift,milseman/swift,shahmishal/swift,hughbe/swift,MukeshKumarS/Swift,swiftix/swift.old,austinzheng/swift,JGiola/swift,parkera/swift,gregomni/swift,jckarter/swift,xedin/swift,nathawes/swift,return/swift,atrick/swift,karwa/swift,parkera/swift,Jnosh/swift,modocache/swift,uasys/swift,johnno1962d/swift,danielmartin/swift,lorentey/swift,kentya6/swift,tardieu/swift,mightydeveloper/swift,tardieu/swift,frootloops/swift,ken0nek/swift,aschwaighofer/swift,calebd/swift,tjw/swift,Ivacker/swift,ahoppen/swift,deyton/swift,khizkhiz/swift,shajrawi/swift,manavgabhawala/swift,tinysun212/swift-windows,karwa/swift,atrick/swift,uasys/swift,roambotics/swift,swiftix/swift,huonw/swift,swiftix/swift.old,benlangmuir/swift,dduan/swift,huonw/swift,gmilos/swift,tkremenek/swift,SwiftAndroid/swift,swiftix/swift,MukeshKumarS/Swift,Jnosh/swift,airspeedswift/swift,ken0nek/swift,zisko/swift,tjw/swift,xwu/swift,arvedviehweger/swift,CodaFi/swift,kperryua/swift,tkremenek/swift,therealbnut/swift,natecook1000/swift,practicalswift/swift,tkremenek/swift,ken0nek/swift,felix91gr/swift,xedin/swift,natecook1000/swift,xedin/swift,khizkhiz/swift,slavapestov/swift,bitjammer/swift,arvedviehweger/swift,shajrawi/swift,devincoughlin/swift,glessard/swift,aschwaighofer/swift,devincoughlin/swift,sschiau/swift,apple/swift,apple/swift,alblue/swift,russbishop/swift,JaSpa/swift,hooman/swift,amraboelela/swift,swiftix/swift.old,glessard/swift,allevato/swift,gribozavr/swift,LeoShimonaka/swift,gregomni/swift,emilstahl/swift,JaSpa/swift,jtbandes/swift,JaSpa/swift,tinysun212/swift-windows,xwu/swift,apple/swift,milseman/swift,therealbnut/swift,aschwaighofer/swift,IngmarStein/swift,felix91gr/swift,codestergit/swift,deyton/swift,aschwaighofer/swift,austinzheng/swift,cbrentharris/swift,roambotics/swift,IngmarStein/swift,jtbandes/swift,KrishMunot/swift,LeoShimonaka/swift,ken0nek/swift,sschiau/swift,CodaFi/swift,hooman/swift,OscarSwanros/swift,JaSpa/swift,jtbandes/swift,kperryua/swift,practicalswift/swift,JaSpa/swift,jopamer/swift,karwa/swift,dduan/swift,frootloops/swift,gribozavr/swift,OscarSwanros/swift,shajrawi/swift,emilstahl/swift,kperryua/swift,jmgc/swift,KrishMunot/swift,slavapestov/swift,manavgabhawala/swift,lorentey/swift,swiftix/swift.old,arvedviehweger/swift,parkera/swift,IngmarStein/swift,mightydeveloper/swift,xedin/swift,shajrawi/swift,calebd/swift,mightydeveloper/swift,adrfer/swift,ken0nek/swift,gmilos/swift,nathawes/swift,kstaring/swift,austinzheng/swift,devincoughlin/swift,practicalswift/swift,brentdax/swift,frootloops/swift,benlangmuir/swift,adrfer/swift,Jnosh/swift,jckarter/swift,atrick/swift,parkera/swift,atrick/swift,milseman/swift,dduan/swift,karwa/swift,parkera/swift,austinzheng/swift,cbrentharris/swift,airspeedswift/swift,amraboelela/swift,stephentyrone/swift,danielmartin/swift,gribozavr/swift,parkera/swift,practicalswift/swift,lorentey/swift,emilstahl/swift,gottesmm/swift,johnno1962d/swift,roambotics/swift,apple/swift,ken0nek/swift,LeoShimonaka/swift,LeoShimonaka/swift,allevato/swift,rudkx/swift,jopamer/swift,modocache/swift,alblue/swift,khizkhiz/swift,johnno1962d/swift,russbishop/swift,therealbnut/swift,johnno1962d/swift,zisko/swift,devincoughlin/swift,kstaring/swift,JGiola/swift,deyton/swift,OscarSwanros/swift,xwu/swift,tinysun212/swift-windows,tjw/swift,natecook1000/swift,allevato/swift,huonw/swift,russbishop/swift,xwu/swift,codestergit/swift,hooman/swift,glessard/swift,SwiftAndroid/swift,stephentyrone/swift,jopamer/swift,swiftix/swift,felix91gr/swift,jmgc/swift,tkremenek/swift,MukeshKumarS/Swift,sdulal/swift,SwiftAndroid/swift,kstaring/swift,amraboelela/swift,amraboelela/swift,modocache/swift,cbrentharris/swift,uasys/swift,zisko/swift,frootloops/swift,huonw/swift,swiftix/swift,amraboelela/swift,kentya6/swift,brentdax/swift,milseman/swift,allevato/swift,sschiau/swift,tinysun212/swift-windows,CodaFi/swift,hughbe/swift,uasys/swift,russbishop/swift,tjw/swift,CodaFi/swift,sschiau/swift,brentdax/swift,codestergit/swift,austinzheng/swift,KrishMunot/swift,gmilos/swift,MukeshKumarS/Swift,gottesmm/swift,tjw/swift,jtbandes/swift,tkremenek/swift,calebd/swift,kstaring/swift,slavapestov/swift,xwu/swift,arvedviehweger/swift,OscarSwanros/swift,tardieu/swift,kentya6/swift,kperryua/swift,sschiau/swift,devincoughlin/swift,airspeedswift/swift,practicalswift/swift,huonw/swift,gmilos/swift,LeoShimonaka/swift,brentdax/swift,mightydeveloper/swift,calebd/swift,khizkhiz/swift,SwiftAndroid/swift,kentya6/swift,zisko/swift,gribozavr/swift,danielmartin/swift,ben-ng/swift,parkera/swift,return/swift,OscarSwanros/swift,slavapestov/swift,alblue/swift,parkera/swift,mightydeveloper/swift,glessard/swift,bitjammer/swift,khizkhiz/swift,modocache/swift,kusl/swift,jmgc/swift,amraboelela/swift,gmilos/swift,frootloops/swift,rudkx/swift,djwbrown/swift,xwu/swift,uasys/swift,manavgabhawala/swift,tardieu/swift,uasys/swift,jmgc/swift,Ivacker/swift,stephentyrone/swift,manavgabhawala/swift,shajrawi/swift,russbishop/swift,Jnosh/swift,Jnosh/swift,xedin/swift,kusl/swift,IngmarStein/swift,calebd/swift,calebd/swift,cbrentharris/swift,dduan/swift,CodaFi/swift,hooman/swift,mightydeveloper/swift,kusl/swift,hooman/swift,tinysun212/swift-windows,practicalswift/swift,therealbnut/swift,calebd/swift,practicalswift/swift,JGiola/swift,kstaring/swift,arvedviehweger/swift,milseman/swift,devincoughlin/swift,Ivacker/swift,tardieu/swift,cbrentharris/swift,Jnosh/swift,austinzheng/swift,CodaFi/swift,sschiau/swift,slavapestov/swift,OscarSwanros/swift,stephentyrone/swift,natecook1000/swift,stephentyrone/swift,gribozavr/swift,djwbrown/swift,jtbandes/swift,gribozavr/swift,return/swift,dduan/swift,JGiola/swift,swiftix/swift,return/swift,felix91gr/swift,kusl/swift,gregomni/swift,devincoughlin/swift,nathawes/swift,therealbnut/swift,IngmarStein/swift,practicalswift/swift,modocache/swift,xedin/swift,dduan/swift,KrishMunot/swift,kperryua/swift,ahoppen/swift,manavgabhawala/swift,swiftix/swift.old,shajrawi/swift,devincoughlin/swift,ahoppen/swift,KrishMunot/swift,nathawes/swift,hughbe/swift,codestergit/swift,JaSpa/swift,return/swift,IngmarStein/swift,karwa/swift,austinzheng/swift,roambotics/swift,tjw/swift,shajrawi/swift,airspeedswift/swift,codestergit/swift,natecook1000/swift,emilstahl/swift,KrishMunot/swift,deyton/swift,alblue/swift,benlangmuir/swift,ben-ng/swift,MukeshKumarS/Swift,jopamer/swift,therealbnut/swift,hughbe/swift,djwbrown/swift,kstaring/swift,gregomni/swift,johnno1962d/swift,ahoppen/swift,felix91gr/swift,harlanhaskins/swift,modocache/swift,harlanhaskins/swift,jtbandes/swift,swiftix/swift,LeoShimonaka/swift,benlangmuir/swift,modocache/swift,felix91gr/swift,glessard/swift,gottesmm/swift,ben-ng/swift,uasys/swift,brentdax/swift,khizkhiz/swift,milseman/swift,sdulal/swift,swiftix/swift.old,jckarter/swift,jopamer/swift,shahmishal/swift,bitjammer/swift,gottesmm/swift,sdulal/swift,airspeedswift/swift,lorentey/swift,stephentyrone/swift,gribozavr/swift,KrishMunot/swift,tkremenek/swift,natecook1000/swift,hooman/swift,aschwaighofer/swift,aschwaighofer/swift,jckarter/swift,gregomni/swift,tardieu/swift,jopamer/swift,djwbrown/swift,Ivacker/swift,kstaring/swift,jmgc/swift,codestergit/swift,karwa/swift,danielmartin/swift,djwbrown/swift,ben-ng/swift,atrick/swift,shahmishal/swift,kperryua/swift,alblue/swift,felix91gr/swift,LeoShimonaka/swift,djwbrown/swift,adrfer/swift,slavapestov/swift,adrfer/swift,rudkx/swift,cbrentharris/swift,allevato/swift,russbishop/swift,MukeshKumarS/Swift,kusl/swift,aschwaighofer/swift,rudkx/swift,slavapestov/swift,cbrentharris/swift,gottesmm/swift,tkremenek/swift,deyton/swift,kentya6/swift,Ivacker/swift,ben-ng/swift,benlangmuir/swift,JGiola/swift,MukeshKumarS/Swift,xedin/swift,frootloops/swift,bitjammer/swift,xedin/swift,SwiftAndroid/swift,lorentey/swift,stephentyrone/swift,harlanhaskins/swift,adrfer/swift,natecook1000/swift,SwiftAndroid/swift,alblue/swift,swiftix/swift.old,gmilos/swift,deyton/swift,mightydeveloper/swift,allevato/swift,nathawes/swift,sdulal/swift,swiftix/swift.old,kperryua/swift,kentya6/swift,adrfer/swift,return/swift,airspeedswift/swift,JGiola/swift,hughbe/swift,rudkx/swift,shahmishal/swift,emilstahl/swift,benlangmuir/swift,emilstahl/swift,karwa/swift,rudkx/swift,jckarter/swift,shajrawi/swift,apple/swift,Jnosh/swift,dduan/swift,glessard/swift,adrfer/swift,ken0nek/swift,therealbnut/swift,sdulal/swift,jmgc/swift,harlanhaskins/swift,johnno1962d/swift,SwiftAndroid/swift,hughbe/swift,OscarSwanros/swift,zisko/swift,ben-ng/swift,zisko/swift,Ivacker/swift,huonw/swift,dreamsxin/swift,bitjammer/swift,tinysun212/swift-windows,bitjammer/swift,emilstahl/swift,russbishop/swift,mightydeveloper/swift