Subversion Repositories DevTools

Rev

Rev 6898 | Rev 7428 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6898 Rev 7040
Line 17... Line 17...
17
our $ScmPlatform;
17
our $ScmPlatform;
18
our $ScmNoToolsTest;
18
our $ScmNoToolsTest;
19
 
19
 
20
#   Misc variables
20
#   Misc variables
21
my $UseGcov = 0;
21
my $UseGcov = 0;
-
 
22
my $UseProfile = 0;
22
my $LcovExplicitBranch = '';
23
my $LcovExplicitBranch = '';
23
my $UseCppcheck = 0;
24
my $UseCppcheck = 0;
24
my $GCCRPath;
25
my $GCCRPath;
25
my @ldFixups;
26
my @ldFixups;
26
 
27
 
Line 267... Line 268...
267
            $arg_alias = $1;
268
            $arg_alias = $1;
268
 
269
 
269
        } elsif (/^--UseGcov/) {                # Compile for code coverage
270
        } elsif (/^--UseGcov/) {                # Compile for code coverage
270
            $UseGcov = 1;
271
            $UseGcov = 1;
271
 
272
 
-
 
273
        } elsif (/^--UseProfile/) {             # Compile for profiling
-
 
274
            $UseProfile = 1;
-
 
275
 
272
        } elsif (/^--LcovExplicitBranch/) {     # Version of lcov requires explicit branch coverage
276
        } elsif (/^--LcovExplicitBranch/) {     # Version of lcov requires explicit branch coverage
273
            $LcovExplicitBranch = ' --rc lcov_branch_coverage=1';
277
            $LcovExplicitBranch = ' --rc lcov_branch_coverage=1';
274
 
278
 
275
        } elsif (/^--UseCppcheck/) {            # Use cppcheck as the lint tool
279
        } elsif (/^--UseCppcheck/) {            # Use cppcheck as the lint tool
276
            $UseCppcheck = 1;
280
            $UseCppcheck = 1;
Line 546... Line 550...
546
        'staticprogs'        => { 'STATIC_PROGS' , '1' },      # Progams link staticlly
550
        'staticprogs'        => { 'STATIC_PROGS' , '1' },      # Progams link staticlly
547
        'no_staticprogs'     => { 'STATIC_PROGS' , undef },    # Default
551
        'no_staticprogs'     => { 'STATIC_PROGS' , undef },    # Default
548
        'noversiondll'       => { 'NO_VERSIONED_DLLS', 1 },    # Matches usage elsewhere
552
        'noversiondll'       => { 'NO_VERSIONED_DLLS', 1 },    # Matches usage elsewhere
549
        'pic'                => { 'GEN_PIC' , '1' },           # Force PIC for static libs
553
        'pic'                => { 'GEN_PIC' , '1' },           # Force PIC for static libs
550
        'nopic'              => { 'GEN_PIC' , undef },         # No Pic on Static libs
554
        'nopic'              => { 'GEN_PIC' , undef },         # No Pic on Static libs
551
        'brokenldscripts'    => { 'BROKEN_LDSCRIPTS' , 1 },    # the linker is brken and cannot handle linker scripts
555
        'brokenldscripts'    => { 'BROKEN_LDSCRIPTS' , 1 },    # the linker is broken and cannot handle linker scripts
552
    );
556
    );
553
 
557
 
554
    #
558
    #
555
    #   Set default options
559
    #   Set default options
556
    #
560
    #
557
    $::ScmCompilerOpts{'STATIC_PROGS'} = undef;
561
    $::ScmCompilerOpts{'STATIC_PROGS'} = undef;
558
    $::ScmCompilerOpts{'NO_VERSIONED_DLLS'} = undef;
562
    $::ScmCompilerOpts{'NO_VERSIONED_DLLS'} = undef;
-
 
563
    $::ScmCompilerOpts{'USE_PROFILE'} = 1 if $UseProfile;
559
 
564
 
560
    #
565
    #
561
    #   Process toolset-specfic compiler options
566
    #   Process toolset-specfic compiler options
562
    #
567
    #
563
    if ( exists $GCCToolchain->{COMPILER_OPTIONS} )
568
    if ( exists $GCCToolchain->{COMPILER_OPTIONS} )