MCPcopy Create free account
hub / github.com/HashLoad/boss / processCompilerOptions

Function processCompilerOptions

utils/librarypath/dproj_itil.go:70–83  ·  view source on GitHub ↗
(compilerOptions *etree.Element)

Source from the content-addressed store, hash-verified

68}
69
70func processCompilerOptions(compilerOptions *etree.Element) {
71 searchPaths := compilerOptions.SelectElement(consts.XmlTagNameSearchPaths)
72 if searchPaths == nil {
73 return
74 }
75 otherUnitFiles := searchPaths.SelectElement(consts.XmlTagNameOtherUnitFiles)
76 if otherUnitFiles == nil {
77 otherUnitFiles = createTagOtherUnitFiles(searchPaths)
78 }
79 value := otherUnitFiles.SelectAttr("Value")
80 currentPaths := strings.Split(value.Value, ";")
81 currentPaths = GetNewPaths(currentPaths, false, env.GetCurrentDir())
82 value.Value = strings.Join(currentPaths, ";")
83}
84
85func createTagOtherUnitFiles(node *etree.Element) *etree.Element {
86 child := node.CreateElement(consts.XmlTagNameOtherUnitFiles)

Callers 1

Calls 3

GetCurrentDirFunction · 0.92
createTagOtherUnitFilesFunction · 0.85
GetNewPathsFunction · 0.85

Tested by

no test coverage detected