mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Added CATCH_CONFIG_FAST_COMPILE to documentation.
				
					
				
			This commit is contained in:
		| @@ -74,9 +74,13 @@ All C++11 support can be disabled with `CATCH_CONFIG_NO_CPP11` | |||||||
|  |  | ||||||
|     CATCH_CONFIG_COUNTER                    // Use __COUNTER__ to generate unique names for test cases |     CATCH_CONFIG_COUNTER                    // Use __COUNTER__ to generate unique names for test cases | ||||||
|     CATCH_CONFIG_WINDOWS_SEH                // Enable SEH handling on Windows |     CATCH_CONFIG_WINDOWS_SEH                // Enable SEH handling on Windows | ||||||
|  |     CATCH_CONFIG_FAST_COMPILE               // Sacrifices some (extremely minor) features for compilation speed | ||||||
|  |  | ||||||
| Currently Catch enables `CATCH_CONFIG_WINDOWS_SEH` only when compiled with MSVC, because some versions of MinGW do not have the necessary Win32 API supports. | Currently Catch enables `CATCH_CONFIG_WINDOWS_SEH` only when compiled with MSVC, because some versions of MinGW do not have the necessary Win32 API supports. | ||||||
|  |  | ||||||
|  | At this moment, `CATCH_CONFIG_FAST_COMPILE` changes only the behaviour of the `-b` (`--break`) flag, making it break into debugger in a stack frame *below* the actual test, unlike the default behaviour, where the break into debugger occurs in the same stack frame as the actual test. `CATCH_CONFIG_FAST_COMPILE` has to be either defined, or not defined, in all translation units that are linked into single test binary, or the behaviour of setting `-b` flag will be unpredictable. | ||||||
|  |  | ||||||
|  |  | ||||||
| Just as with the C++11 conformance toggles, these toggles can be disabled by using `_NO_` form of the toggle, e.g. `CATCH_CONFIG_NO_WINDOWS_SEH`. | Just as with the C++11 conformance toggles, these toggles can be disabled by using `_NO_` form of the toggle, e.g. `CATCH_CONFIG_NO_WINDOWS_SEH`. | ||||||
|  |  | ||||||
| # Windows header clutter | # Windows header clutter | ||||||
|   | |||||||
| @@ -56,6 +56,8 @@ tests-factorial.cpp:11: failed: Factorial(0) == 1 for: 0 == 1 | |||||||
| Failed 1 test case, failed 1 assertion. | Failed 1 test case, failed 1 assertion. | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | ## Other possible solutions | ||||||
|  | You can also opt to sacrifice some features in order to speed-up Catch's compilation times. For details see the [documentation on Catch's compile-time configuration](configuration.md#other-toggles). | ||||||
|  |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský