X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=wscript;h=9b41223a847ece4806ead97fbad1990808bb6bdb;hb=de24d4f8b11b959a5155051a9f4a7b456b4ab465;hp=f2fa3acd183e7dfb194f521fd3137cf25d472044;hpb=0cb4160ce771b87b2826452132bb1a6de447515f;p=ardour.git diff --git a/wscript b/wscript index f2fa3acd18..9b41223a84 100644 --- a/wscript +++ b/wscript @@ -44,6 +44,12 @@ def fetch_svn_revision (path): cmd = "LANG= svn info " + path + " | awk '/^Revision:/ { print $2}'" return commands.getoutput(cmd) +def fetch_gcc_version (): + cmd = "LANG= gcc --version" + output = commands.getoutput(cmd).splitlines() + version = output[0].split(' ')[2].split('.') + return version + def fetch_git_revision (path): cmd = "LANG= git log --abbrev HEAD^..HEAD " + path output = commands.getoutput(cmd).splitlines() @@ -372,9 +378,16 @@ def sub_config_and_use(conf, name, has_objects = True): def configure(conf): create_stored_revision() + conf.env['VERSION'] = VERSION autowaf.set_recursive() autowaf.configure(conf) - + + gcc_versions = fetch_gcc_version() + if Options.options.debug and gcc_versions[0] == '4' and gcc_versions[1] > '4': + print 'Version 4.5 of gcc is not ready for use when compiling Ardour with optimization.' + print 'Please use a different version or re-configure with --debug' + exit (1) + if sys.platform == 'darwin': # # Define OSX as a uselib to use when compiling