Example #1
0
 def find_cxx(debug=False, use_default=True):
     if use_default:
         cxx = Argument('cxx').retrieve_all().value
         t = find_exe('g++', argprefix=['cxx', 'ld'])
         if cxx is None:
             t.use(cxx=cxx)
         else:
             t = empty().use(cxx=cxx)
         t.use(debug=debug)
         t.produce(':cpp/cxx')
     else:
         t = find_exe('g++', argprefix=['cxx', 'ld'])
     return t
Example #2
0
 def find_cc(debug=False, use_default=True):
     if use_default:
         cc = Argument('cc').retrieve_all().value
         t = find_exe('gcc', argprefix=['cc', 'ld'])
         if cc is None:
             t.use(cc=cc)
         else:
             t = empty().use(cc=cc)
         t.use(debug=debug)
         t.produce(':cpp/cc')
     else:
         t = find_exe('gcc', argprefix=['cc', 'ld'])
     return t
Example #3
0
File: rust.py Project: raffber/wasp
def find_cargo(produce=True):
    t = find_exe('cargo', dirs=RUST_BINARY_PATHS, argprefix='cargo')
    if produce:
        t.produce(':rust/cargo')
    return t
Example #4
0
File: rust.py Project: raffber/wasp
def find_rustc(produce=True):
    t = find_exe('rustc', dirs=RUST_BINARY_PATHS, argprefix='rustc')
    if produce:
        t.produce(':rust/rustc')
    return t