mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-05 15:34:41 +00:00
Create separate build directories based on version (#1591)
* Create separate build directories based on version * Fix find_unused_asm.sh * Remove find_unused_asm.sh from Jenkinsfile * Revert diff.py * Clarify that gc-eu-mq is not "supported" yet * Revert xmlcreate.py (to be deleted) * Remove gc-eu-mq for now * Add version flags to diff_settings.py and sym_info.py * --version -> --oot-version * Fix --oot-version * Revert adding version flags to tools * Delete find_unused_asm.sh * Revert changes to first_diff.py output in tutorial * Factor out sed usages for spec
This commit is contained in:
parent
1f9c28f370
commit
25ff0a27de
18 changed files with 2500 additions and 2534 deletions
|
@ -59,10 +59,10 @@ def GetNonMatchingSize(path):
|
|||
return size
|
||||
|
||||
def IsCFile(objfile):
|
||||
srcfile = objfile.strip().replace("build/", "").replace(".o", ".c")
|
||||
srcfile = objfile.strip().replace("build/gc-eu-mq-dbg/", "").replace(".o", ".c")
|
||||
return os.path.isfile(srcfile)
|
||||
|
||||
mapFile = ReadAllLines("build/z64.map")
|
||||
mapFile = ReadAllLines("build/gc-eu-mq-dbg/z64.map")
|
||||
curSegment = None
|
||||
src = 0
|
||||
code = 0
|
||||
|
@ -86,7 +86,7 @@ for line in mapFile:
|
|||
objFile = lineSplit[3]
|
||||
|
||||
if (section == ".text" and IsCFile(objFile)):
|
||||
if objFile.startswith("build/src"):
|
||||
if objFile.startswith("build/gc-eu-mq-dbg/src"):
|
||||
src += size
|
||||
|
||||
if curSegment == "code":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue