Skip to content

Extraction of library auto-detection / caching module in legacy/builder #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6196972
Perform earlier exclusion of includes search of precompiled libraries
cmaglie Jan 21, 2022
32a5c3c
includeCache: put cacheFilePath as class member
cmaglie Oct 17, 2019
2a64bc7
Moved SourceFile, UniqueSourceFileQueue and related methods in contai…
cmaglie Oct 17, 2019
63fe343
Slightly refactored methods of UniqueSourceFileQueue
cmaglie Oct 17, 2019
082591c
UniqueSourceFileQueue do not drop already processed files anymore
cmaglie Oct 17, 2019
d315ce6
Create CppIncludesFinder object to handle library discovery.
cmaglie Oct 17, 2019
319f47a
Replaced SourceFile.Origin field with SourceFile.Library
cmaglie Oct 17, 2019
d0bfe13
Add library "Utility" folder in include paths together with library
cmaglie Oct 21, 2019
648a6b9
Some variable rename to make linter happy
cmaglie Oct 21, 2019
6525495
Removed local variable
cmaglie Oct 21, 2019
5acd942
Added debugging prints for SourceFile structs
cmaglie Oct 21, 2019
1da2a07
Removed reference to Library in SourceFile struct
cmaglie Oct 21, 2019
06c66e7
Added some documentation to SourceFile struct and methods
cmaglie Oct 21, 2019
c388af5
Added SourceFile.Equals() and converted all SourceFile object to poin…
cmaglie Oct 21, 2019
b3b262b
Added documentation to UniqueSourceFileQueue and fixed Pop method
cmaglie Oct 21, 2019
9699a1b
FindFilesInFolder now returns the result instead of changine the refe…
cmaglie Oct 21, 2019
111d6ea
Added includeCache.String() and includeCacheItem.String()
cmaglie Oct 22, 2019
3323453
fixed docs for includeCache; renamed some methods; added Invalidate()…
cmaglie Oct 25, 2019
e1a1581
CppIncludesFinder: Removing dependency on ctx (part 1)
cmaglie Oct 25, 2019
4b0b588
CppIncludesFinder: Removing dependency on ctx (part 2)
cmaglie Oct 25, 2019
bbaf472
Using Library.SourceDirs() to obtain lib source dirs
cmaglie Oct 25, 2019
1ce2fce
Added test for build caching
cmaglie Oct 28, 2019
8e1d280
Moving ctx.BuildPath usage out of CppIncludeFinder
cmaglie Oct 28, 2019
23d781f
Moving ctx.ImportedLibraries usage out of CppIncludeFinder
cmaglie Oct 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions legacy/builder/add_additional_entries_to_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ func (*AddAdditionalEntriesToContext) Run(ctx *types.Context) error {
ctx.WarningsLevel = DEFAULT_WARNINGS_LEVEL
}

ctx.CollectedSourceFiles = &types.UniqueSourceFileQueue{}

ctx.LibrariesResolutionResults = map[string]types.LibraryResolutionResult{}
ctx.HardwareRewriteResults = map[*cores.PlatformRelease][]types.PlatforKeyRewrite{}

Expand Down
Loading