@@ -6,7 +6,8 @@ project('SU2', 'c', 'cpp',
66 default_options : [' buildtype=release' ,
77 ' warning_level=0' ,
88 ' c_std=c99' ,
9- ' cpp_std=c++17' ])
9+ ' cpp_std=c++11' ,
10+ ' tracy_enable=false' ])
1011
1112fsmod = import (' fs' )
1213if not fsmod.exists(' su2preconfig.timestamp' )
@@ -112,6 +113,19 @@ if get_option('enable-autodiff') and not omp
112113 endif
113114endif
114115
116+ # Add Tracy dependency if enabled
117+ if get_option (' tracy_enable' )
118+ tracy_dep = dependency (' tracy' , static : true )
119+ su2_deps += tracy_dep
120+ su2_cpp_args += ' -DTRACY_ENABLE'
121+
122+ # Add build type check
123+ if get_option (' buildtype' ) != ' debugoptimized'
124+ warning (' For optimal Tracy profiling, use --buildtype=debugoptimized' )
125+ endif
126+ endif
127+
128+
115129# add cgns library
116130if get_option (' enable-cgns' )
117131 subdir (' externals/cgns' )
@@ -361,6 +375,7 @@ message('''---------------------------------------------------------------------
361375 libROM: @11@
362376 CoolProp: @12@
363377 MLPCpp: @13@
378+ Tracy Profiler: @14@
364379
365380 Please be sure to add the $SU2_HOME and $SU2_RUN environment variables,
366381 and update your $PATH (and $PYTHONPATH if applicable) with $SU2_RUN
@@ -372,11 +387,11 @@ message('''---------------------------------------------------------------------
372387 export PATH=$PATH:$SU2_RUN
373388 export PYTHONPATH=$PYTHONPATH:$SU2_RUN
374389
375- Use './ninja -C @14 @ install' to compile and install SU2
390+ Use './ninja -C @15 @ install' to compile and install SU2
376391''' .format(get_option (' prefix' )+ ' /bin' , meson .project_source_root(), get_option (' enable-tecio' ), get_option (' enable-cgns' ),
377392 get_option (' enable-autodiff' ), get_option (' enable-directdiff' ), get_option (' enable-pywrapper' ), get_option (' enable-mkl' ),
378393 get_option (' enable-openblas' ), get_option (' enable-pastix' ), get_option (' enable-mixedprec' ), get_option (' enable-librom' ), get_option (' enable-coolprop' ),
379- get_option (' enable-mlpcpp' ), meson .project_build_root().startswith(meson .project_source_root()) ? meson .project_build_root().split(' /' )[- 1 ] : meson .project_build_root()))
394+ get_option (' enable-mlpcpp' ), get_option ( ' tracy_enable ' ), meson .project_build_root().startswith(meson .project_source_root()) ? meson .project_build_root().split(' /' )[- 1 ] : meson .project_build_root()))
380395
381396if get_option (' enable-mpp' )
382397 if get_option (' install-mpp' )
0 commit comments