Ticket #7011: intel-darwin.patch

File intel-darwin.patch, 1.7 KB (added by vogel@…, 10 years ago)
  • tools/build/v2/engine/build.jam

     
    222222    -I$(--python-include) -I$(--extra-include)
    223223    : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
    224224## Intel C/C++ for Darwin
    225 toolset intel-darwin icc : "-o " : -D
     225toolset intel-darwin icc : "-dev-usr-root=`xcode-select -print-path`/usr -o " : -D
    226226    :
    227227    [ opt --release : -O3 ]
    228228    [ opt --debug : -g -O0 -p ]
  • tools/build/v2/engine/build.sh

     
    137137    ;;
    138138
    139139    intel-darwin)
    140     BOOST_JAM_CC=icc
     140    BOOST_JAM_CC="icc -dev-usr-root=`xcode-select -print-path`/usr"
    141141    ;;
    142142
    143143    intel-linux)
  • tools/build/v2/tools/intel-darwin.jam

     
    146146
    147147actions compile.c
    148148{
    149     "$(CONFIG_COMMAND)" -xc $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
     149    "$(CONFIG_COMMAND)" -dev-usr-root=`xcode-select -print-path`/usr -xc $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
    150150}
    151151
    152152actions compile.c++
    153153{
    154     "$(CONFIG_COMMAND)" -xc++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
     154    "$(CONFIG_COMMAND)" -dev-usr-root=`xcode-select -print-path`/usr -xc++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
    155155}
    156156
    157157flags intel-darwin ARFLAGS <archiveflags> ;