/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 545 by johnpye, Wed Apr 26 15:15:40 2006 UTC revision 546 by johnpye, Fri Apr 28 09:24:19 2006 UTC
# Line 270  opts.Add( Line 270  opts.Add(
270      ,""      ,""
271  )  )
272    
273    if platform.system()!="Windows":
274        opts.Add(BoolOption(
275            'WITH_GCCVISIBILITY'
276            , 'Whether to use GCC Visibility extensions when building with GCC 4.0'
277            , True
278        ))
279    
280  if platform.system()=="Windows":  if platform.system()=="Windows":
281      opts.Add(BoolOption(      opts.Add(BoolOption(
282          'WITH_INSTALLER'          'WITH_INSTALLER'
# Line 492  int main(void){ Line 499  int main(void){
499    
500  def CheckGccVisibility(context):  def CheckGccVisibility(context):
501      context.Message("Checking for GCC 'visibility' capability... ")      context.Message("Checking for GCC 'visibility' capability... ")
502        if not context.env.has_key('WITH_GCCVISIBILITY') or not env['WITH_GCCVISIBILITY']:
503            context.Result("disabled")
504            return 0
505      is_ok = context.TryCompile(gccvisibility_test_text,".c")      is_ok = context.TryCompile(gccvisibility_test_text,".c")
506      context.Result(is_ok)      context.Result(is_ok)
507      return is_ok      return is_ok

Legend:
Removed from v.545  
changed lines
  Added in v.546

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22