Changeset 99028


Ignore:
Timestamp:
Oct 24, 2012, 2:06:52 PM (12 years ago)
Author:
jmr@…
Message:

add ccache_dir to sandbox when ccache is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portsandbox.tcl

    r98679 r99028  
    4242# sandbox-exec -p '(version 1) (allow default) (deny file-write*) (allow file-write* <filter>)' some-command
    4343proc portsandbox::set_profile {target} {
    44     global os.major portsandbox_profile workpath distpath altprefix package.destpath
     44    global os.major portsandbox_profile workpath distpath altprefix \
     45        package.destpath configure.ccache ccache_dir
    4546
    4647    switch $target {
     
    6869    # TODO: remove altprefix support
    6970    lappend allow_dirs $workpath $altprefix
     71    if {${configure.ccache}} {
     72        lappend allow_dirs $ccache_dir
     73    }
    7074
    7175    set portsandbox_profile "(version 1) (allow default) (deny file-write*) \
Note: See TracChangeset for help on using the changeset viewer.