@@ -120,6 +120,19 @@ if get_option('enable-autodiff') and not omp
120120 endif
121121endif
122122
123+ # Add Tracy dependency if enabled
124+ if get_option (' enable-tracy' )
125+ tracy_dep = dependency (' tracy' , static : true )
126+ su2_deps += tracy_dep
127+ su2_cpp_args += ' -DHAVE_TRACY'
128+
129+ # Add build type check
130+ if get_option (' buildtype' ) != ' debugoptimized'
131+ warning (' For optimal Tracy profiling, use --buildtype=debugoptimized' )
132+ endif
133+ endif
134+
135+
123136# add cgns library
124137if get_option (' enable-cgns' )
125138 subdir (' externals/cgns' )
@@ -364,6 +377,7 @@ message('''---------------------------------------------------------------------
364377 libROM: @11@
365378 CoolProp: @12@
366379 MLPCpp: @13@
380+ Tracy Profiler: @14@
367381
368382 Please be sure to add the $SU2_HOME and $SU2_RUN environment variables,
369383 and update your $PATH (and $PYTHONPATH if applicable) with $SU2_RUN
@@ -375,11 +389,11 @@ message('''---------------------------------------------------------------------
375389 export PATH=$PATH:$SU2_RUN
376390 export PYTHONPATH=$PYTHONPATH:$SU2_RUN
377391
378- Use './ninja -C @14 @ install' to compile and install SU2
392+ Use './ninja -C @15 @ install' to compile and install SU2
379393''' .format(get_option (' prefix' )+ ' /bin' , meson .project_source_root(), get_option (' enable-tecio' ), get_option (' enable-cgns' ),
380394 get_option (' enable-autodiff' ), get_option (' enable-directdiff' ), get_option (' enable-pywrapper' ), get_option (' enable-mkl' ),
381395 get_option (' enable-openblas' ), get_option (' enable-pastix' ), get_option (' enable-mixedprec' ), get_option (' enable-librom' ), get_option (' enable-coolprop' ),
382- get_option (' enable-mlpcpp' ), meson .project_build_root().startswith(meson .project_source_root()) ? meson .project_build_root().split(' /' )[- 1 ] : meson .project_build_root()))
396+ get_option (' enable-mlpcpp' ), get_option ( ' enable-tracy ' ), meson .project_build_root().startswith(meson .project_source_root()) ? meson .project_build_root().split(' /' )[- 1 ] : meson .project_build_root()))
383397
384398if get_option (' enable-mpp' )
385399 if get_option (' install-mpp' )
0 commit comments