 
 (defun cr-flymake-getfname (file-name-from-error-message)
   "Strip cruft from the passed-in filename to help flymake find the real file."
-  (concat (cr-flymake-chromium-src)
-          (substring file-name-from-error-message
-                     (length (cr-flymake-from-build-to-src-root)))))
+  (file-name-nondirectory file-name-from-error-message))
 
 (defun cr-flymake-ninja-command-line ()
   "Return the command-line for running ninja, as a list of strings, or nil if

   "[^/]+" ".."
   (substring
    (file-name-directory
     (file-truename (or (and (string-prefix-p "/" cr-flymake-ninja-build-file)
                             cr-flymake-ninja-build-file)
                        (concat (cr-flymake-chromium-src)
                                cr-flymake-ninja-build-file))))

           (line-err-info-list
            (nth 0 (flymake-find-err-info flymake-err-info line-no)))
           (menu-data (flymake-make-err-menu-data line-no line-err-info-list)))
      (prin1 (car (car (car (cdr menu-data)))) t))))

(defun cr-flymake-find-file ()
  "Enable flymake, but only if it makes sense, and immediately
