Changeset a35b458 in mainline for tools/jobfile.py
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/jobfile.py
r3061bc1 ra35b458 44 44 usage(sys.argv[0]) 45 45 return 46 46 47 47 jobfname = sys.argv[1] 48 48 ccname = sys.argv[2] … … 53 53 options = " ".join(sys.argv[6:]) 54 54 cwd = os.getcwd() 55 55 56 56 if srcfname.endswith(".c"): 57 57 toolname = "cc" 58 58 category = "core" 59 59 60 60 if srcfname.endswith(".s"): 61 61 toolname = "as" 62 62 category = "asm" 63 63 64 64 if srcfname.endswith(".S"): 65 65 toolname = "as" 66 66 category = "asm/preproc" 67 67 68 68 jobfile = open(jobfname, "a") 69 69 fcntl.lockf(jobfile, fcntl.LOCK_EX) … … 71 71 fcntl.lockf(jobfile, fcntl.LOCK_UN) 72 72 jobfile.close() 73 73 74 74 # Run the compiler proper. 75 75 os.execvp(ccname, sys.argv[2:])
Note:
See TracChangeset
for help on using the changeset viewer.