Lines Matching refs:lookup
59 # Compile with the host compiler and link a .c file into a "lookup" binary, then
61 # and pass the name of the resulting binary to the "lookup" binary and check the
67 # lookup binary's source file, the source file(s) with CTF info to compile
72 # OPTION is the name of some option, like "name" or "lookup", and
85 # lookup .c file's name.
87 # lookup: SOURCE
88 # Compile the file SOURCE.c. If omitted, the lookup source defaults
104 # If set, extra libraries to link the lookup program with.
122 # regexp_diff to compare the output of the lookup program against the
152 set opts(lookup) {}
187 if { [llength $opts(lookup)] == 0 } {
188 set opts(lookup) "$file.c"
190 set opts(lookup) "[file dirname $file]/$opts(lookup)"
194 set opts(name) $opts(lookup)
211 # Compile and link the lookup program.
212 set comp_output [prune_warnings [compile_link_one_host_cc $opts(lookup) "tmpdir/lookup" "libctf.la $opts(lookup_link)"]]
215 send_log "compilation of lookup program $opts(lookup) failed with <$comp_output>"
216 perror "compilation of lookup program $opts(lookup) failed"
265 # Invoke the lookup program on the outputs, possibly through the wrapper.
268 set results [run_host_cmd tmpdir/lookup $lookup_output]
270 set results [run_host_cmd "$opts(wrapper) tmpdir/lookup" $lookup_output]
273 set f [open "tmpdir/lookup.out" "w"]
277 if { [regexp_diff "tmpdir/lookup.out" "${file}.lk"] } then {
279 if { $verbose == 2 } then { verbose "output is [file_contents tmpdir/lookup.out]" 2 }