Skip to content
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

Remove Makefiles in compiler/ and frontend/ #25907

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

mppf
Copy link
Member

@mppf mppf commented Sep 9, 2024

Ever since PR #20920, we have been using cmake to build the compiler and frontend library. However, we have left the old Makefiles lying around and have continued to maintain them as we add or remove files. These Makefiles have been unused, except for in TAGS support.

This PR changes the TAGS support to use a find command to gather source files in these directories and then removes these Makefiles that are now completely unused.

Reviewed by @arezaii - thanks!

  • full comm=none testing

instead of relying on Makefiles.

---
Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
---
Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
---
Signed-off-by: Michael Ferguson <mppf@users.noreply.github.com>
@mppf mppf force-pushed the compiler-makefile-removal branch from 451c931 to 126a45b Compare October 7, 2024 16:50
Copy link
Contributor

@arezaii arezaii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use tags, but I generated them and found only those in ./compilers/TAGS differed.

Of those, it appears there are several new symbols included, but no symbols missing. I think the new symbols come from specific files that were excluded from compiler/AST/Makefile.share, and the "prims-specific variables", although there are probably others because there are about 80 new symbols now vs. before.

I did verify that I could use tags to navigate as such:

$ make TAGS=1
$ cd compiler
$ vim -t LibraryFileWriter

Which opened vim and took me to the definition of LibraryFileWriter

Full list of new symbols
EOF_TOK
GatherToplevelSymbols
Line
_GNU_SOURCE
_POSIX_C_SOURCE
argtypes
buf_read
build_data
catstr
charp
complexSqrt128
complexSqrt64
computeCommonPrefix
computeSymbolNames
containedFilePaths
declare_data
define_data
doLoadLocations
dupstr
forv_Line
fp
gatherTopLevelModuleNames
gatherTopLevelModules
getLlvmPgasPluginInfo
getLocationMap
get_lines
hfp
invalidFileError
llvmGetPassPluginInfo
load
loadAstQuery
loadGenCodeModule
loadLibraryFileQuery
loadLlvmModuleImpl
loadLocations
loadLocationsQuery
loadModuleAst
loadModuleSection
loadModuleSectionQuery
loadSourceAst
makeDoubleComplex
makeFloatComplex
my_aligned_alloc
my_strerror_r
nargs
negToZero
noteSymbolForTable
noteToplevelSymbolsForTable
nres
openAndMap
openFile
padToAlign
pos
readHeaders
readLocationEntries
readLocationGroup
readLocationPaths
readModuleAst
readModuleSection
registerLibrary
rettypes
setGeneratedCode
setSourcePaths
setupHelper
string
summarize
symbolIdLess
writeAllSections
writeAst
writeGenCode
writeHeader
writeLocationEntries
writeLocationGroup
writeLocations
writeLongStrings
writeModuleSection
writeSymbolTable
zeroNegToNegOne
~LibraryFile

@mppf mppf merged commit f892edb into chapel-lang:main Oct 8, 2024
7 checks passed
@mppf mppf deleted the compiler-makefile-removal branch October 8, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants