aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
AgeCommit message (Collapse)AuthorFilesLines
2016-12-05Eliminate the use of '/...' paths on WindowsKaren Arutyunov1-0/+2
2016-11-30Add support for typed/untyped concatenated expansionBoris Kolpackov1-1/+1
2016-11-29Cosmetic changeBoris Kolpackov1-8/+10
2016-11-26Add support for VC15Karen Arutyunov2-14/+20
2016-11-22Use diagnostics facility from libbutlBoris Kolpackov2-14/+9
2016-11-18Make names and vector<name> different types, add typed value constructorBoris Kolpackov3-6/+6
2016-11-04Adopt to auto_fd introduced to libbutl fdstreams and processKaren Arutyunov4-6/+10
2016-11-04Cleanup match_result messBoris Kolpackov4-13/+25
2016-09-15Add io_error alias for std::ios_base::failureKaren Arutyunov6-10/+10
2016-09-13Fix crashing on unhandled system_error thrown by file_exists()Karen Arutyunov4-7/+8
2016-09-06Ignore instead of overriding header prefix (now more specific -I's come first)Boris Kolpackov1-8/+10
2016-09-05Change order in which library options are processedBoris Kolpackov2-59/+104
The idea is that we want more "specialized" -I/-L options before more "generic" in order to make sure we don't pick up installed headers or libraries. This is still not bullet-proof though.
2016-09-05Handle /usr/local brain-deathBoris Kolpackov4-18/+85
2016-09-04Add /usr/local/lib to library search paths on FreeBSDBoris Kolpackov1-37/+50
2016-09-04Adjust to freebsd to bsd target class changeBoris Kolpackov3-6/+6
2016-09-04Add digits to right pattern separator to handle clang++37 (FreeBSD).Boris Kolpackov1-1/+4
2016-09-04Fix initializer list lifetime issuesBoris Kolpackov2-20/+12
2016-09-03Fix uninitialized variable warningBoris Kolpackov1-1/+1
2016-09-02Don't warn if we pre-guessed gcc but it ended up being clang-appleBoris Kolpackov1-3/+15
This handles the gcc/g++ Mac OS "aliases".
2016-08-31Improve mixed source (e.g., C and C++) building supportBoris Kolpackov3-4/+35
2016-08-30Fix missing .dll.d cleanup on MinGWBoris Kolpackov1-7/+2
2016-08-30Remove backwards-compatibility kludgesBoris Kolpackov1-3/+0
2016-08-30Change function names to make VC happyBoris Kolpackov1-1/+1
2016-08-30Fix typoBoris Kolpackov1-1/+1
2016-08-30On FreeBSD also search in libdata/pkgconfig/Boris Kolpackov1-33/+60
2016-08-29Implement initial support for library versioningBoris Kolpackov4-100/+339
Currently we only support platform-independent versions that get appended to the library name. The magic incantation is this: lib{foo}: bin.lib.version = @-1.2 This will produce libfoo-1.2.so, libfoo-1.2.dll, etc. In the future we will support things like this: lib{foo}: bin.lib.version = linux@1.2.3 freebsd@1.2 windows@1.2
2016-08-29Fix incorrect process argv[0] valuesBoris Kolpackov1-1/+1
2016-08-28Fix locale dependence when extracting GCC library search pathsBoris Kolpackov1-6/+15
2016-08-28Fix remaining case-insensitive compareBoris Kolpackov1-2/+1
2016-08-28Optimize library processingBoris Kolpackov2-89/+98
2016-08-28Factor library search/processing out to cc::commonBoris Kolpackov9-904/+932
2016-08-28Fix Windows rpath supportBoris Kolpackov3-177/+310
2016-08-28Extract pkg-config information for both static/shared at onceBoris Kolpackov5-174/+203
We also no longer pick shared/static file rather entering them as "our" lib{} target. This way we use the link order of the importer "transitively".
2016-08-27Fix rpath-linkBoris Kolpackov3-67/+96
2016-08-27Reimplement UNIX rpath using process_library(), -rpath-link is still brokenBoris Kolpackov5-125/+209
2016-08-27Determine if library is system in process_librariesBoris Kolpackov3-45/+113
2016-08-27Clean up library export, make c and cxx modules project root onlyBoris Kolpackov10-497/+591
So now c and cxx modules can only be loaded in project root scope (normally root.build). Also, the c.std and cxx.std must now be set *before* loading the module to take effect. This means we won't be able to handle old buildfiles anymore but old versions of build2 should be able to handle new *.std placement.
2016-08-26Add pkg-config support for import installedBoris Kolpackov10-231/+832
Redesign library importing/exporting while at it.
2016-08-25Handle *.export.loptionsBoris Kolpackov1-2/+26
2016-08-24Pick *.libs variable depending on library type during static linkingBoris Kolpackov3-9/+42
2016-08-24Handle *.export.libs, distinguish interface and implementation dependenciesBoris Kolpackov5-66/+264
A library dependency on another libraries is either "interface" or "implementation". If it is interface, then everyone who links to this library should also link to the interface dependency, explicitly. A good example of an interface dependency is a library API that is called in inline functions. Interface dependencies of a library should be explicitly listed in the *.export.libs (where we can also list target names). So the typical usage will be along these lines: import int_libs = libfoo%lib{foo} import int_libs += ... import imp_libs = libbar%lib{bar} import imp_libs += ... lib{baz}: ... $int_libs $imp_libs lib{baz}: cxx.export.libs = $int_libs
2016-08-23Handle "prefixless" include directory to project mapping betterBoris Kolpackov2-77/+124
2016-08-23Add cc.config in addition to ccBoris Kolpackov2-19/+65
2016-08-23Rename cc.{vars,config} modules to cc.core.{vars,config}Boris Kolpackov3-44/+45
We are going to use cc.config for something else.
2016-08-22Cache process_path, use fallback search directory for binutilsBoris Kolpackov8-38/+86
2016-08-19Implement uninstall operationBoris Kolpackov3-20/+34
2016-08-18Add missing includeBoris Kolpackov1-0/+2
2016-08-18Fix invisible inline function issueBoris Kolpackov2-8/+5
2016-08-17Add support for config.bin.{lib,exe}.{prefix,suffix}Boris Kolpackov2-8/+12
This replaces the bin.libprefix functionality.
2016-08-13Use extension derivation function rather than extension variable directlyBoris Kolpackov1-5/+10