• Alberto García Hierro's avatar
    cmd/go: Add support for including C++ files in packages · 84485361
    Alberto García Hierro authored
    * Add a CXXFiles field to Package, which includes .cc, .cpp and .cxx  files.
    * CXXFiles are compiled using g++, which can be overridden using the CXX environment variable.
    * Include .hh, .hpp and .hxx files in HFiles.
    * Add support for CPPFLAGS (used for both C and C++) and CXXFLAGS (used only for C++) in cgo directive.
    * Changed pkg-config cgo directive to modify CPPFLAGS rather than CFLAGS, so both C and C++ files get any flag returned by pkg-config --cflags.
    
    Fixes #1476.
    
    R=iant, r
    CC=bradfitz, gobot, golang-dev, iant, minux.ma, remyoudompheng, seb.binet
    https://golang.org/cl/8248043
    84485361
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...