Changeset - r24504:754994973c7b
[Not reviewed]
master
0 1 0
Patric Stout - 4 years ago 2020-12-25 19:06:37
truebrain@openttd.org
Fix: [Emscripten] using TIC/TOC on this platform is silly

Stop throwing a warning about this, as it is not likely we will
ever implement it.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/cpu.cpp
Show inline comments
 
@@ -66,6 +66,12 @@ uint64 ottd_rdtsc()
 
# define RDTSC_AVAILABLE
 
#endif
 

	
 
#if defined(__EMSCRIPTEN__) && !defined(RDTSC_AVAILABLE)
 
/* On emscripten doing TIC/TOC would be ill-advised */
 
uint64 ottd_rdtsc() {return 0;}
 
# define RDTSC_AVAILABLE
 
#endif
 

	
 
/* In all other cases we have no support for rdtsc. No major issue,
 
 * you just won't be able to profile your code with TIC()/TOC() */
 
#if !defined(RDTSC_AVAILABLE)
0 comments (0 inline, 0 general)