[PATCH] Enable building 4.2.0 on non-gcc platforms

Andy Dougherty doughera at lafayette.edu
Thu Mar 22 13:07:18 UTC 2012


On Wed, 21 Mar 2012, Jonathan "Duke" Leto wrote:

> Howdy,
> 
> I am interested to know which compiler(s) this code failed on.
> 
> Currently we test with gcc, g++ and clang, but those are all gcc-ish.

pbc_to_exe contains three independent code generators that must be
kept in sync:

    'generate_code_gcc'(infile, outfh)
    'generate_code_msvc'(infile, outfh)
    'generate_code'(infile, outfh)

Which one to use is determed by sub 'determine_code_type', which keys off 
config['gccversion'].  Any compiler that doesn't set gccversion will run 
into this problem.  I encountered it with Sun's compiler, but MSVC was out 
of sync too.  I didn't test it, but changed it to match anyway.

-- 
    Andy Dougherty		doughera at lafayette.edu


More information about the parrot-dev mailing list