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. --- config/win32-mingw-config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') diff --git a/config/win32-mingw-config.py b/config/win32-mingw-config.py index 8c8c12db46f..fa6b12ab138 100644 --- a/config/win32-mingw-config.py +++ b/config/win32-mingw-config.py @@ -156,5 +156,8 @@ LLIBS = ['-lshell32', '-lshfolder', '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm' BF_DEBUG = 'false' BF_DEBUG_FLAGS= '-g' +BF_PROFILE_FLAGS = ['-pg','-g'] +BF_PROFILE = 'false' + BF_BUILDDIR = '..\\build\\win32-mingw' BF_INSTALLDIR='..\\install\\win32-mingw' -- cgit v1.2.3