From 038c08804d3597d7edbd878fab0632a9c86b8ea5 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 6 Feb 2008 01:25:56 +0000 Subject: It is now possible to compile a profiling build with mingw+scons. Here are the changes I've had to make: * Added default settings for BF_PROFILE and BF_PROFILE_FLAGS for mingw * Made makesdna.c link with profiling flags too. This fixes some linking problems related to guardedmalloc for linking it. I'm not sure if this breaks compiling with BF_PROFILE on other platforms. --- source/blender/makesdna/intern/SConscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/intern/SConscript') diff --git a/source/blender/makesdna/intern/SConscript b/source/blender/makesdna/intern/SConscript index fe712afbeeb..872fd515f1d 100644 --- a/source/blender/makesdna/intern/SConscript +++ b/source/blender/makesdna/intern/SConscript @@ -25,6 +25,8 @@ if sys.platform != 'cygwin': makesdna_tool.Append (CCFLAGS = cflags) makesdna_tool.Append (CPPDEFINES = defines) makesdna_tool.Append (LIBPATH = '#'+root_build_dir+'/lib') +if env['BF_PROFILE']: + makesdna_tool.Append (LINKFLAGS = env['BF_PROFILE_FLAGS']) if env['OURPLATFORM'] == 'linux2' and root_build_dir[0]==os.sep: makesdna = makesdna_tool.Program (target = root_build_dir+'/makesdna', source = source_files, LIBS=['bf_guardedalloc']) -- cgit v1.2.3