view runtime/compiler/sml.vim @ 32238:b2cce50602ca v9.0.1450

patch 9.0.1450: MacOS: building fails if clock_gettime() is not available Commit: https://github.com/vim/vim/commit/08210f8def4886b0cd04dd4bbebed719f0512315 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 13 19:15:54 2023 +0100 patch 9.0.1450: MacOS: building fails if clock_gettime() is not available Problem: MacOS: building fails if clock_gettime() is not available. Solution: Add a configure check for clock_gettime(). (closes https://github.com/vim/vim/issues/12242)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Apr 2023 20:30:03 +0200
parents c968191a8557
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	SML/NJ Compiler
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2022 Feb 09

if exists("current_compiler")
  finish
endif
let current_compiler = "sml"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

CompilerSet makeprg=sml
CompilerSet errorformat=%f:%l.%c-%e.%k\ %trror:\ %m,
		       \%f:%l.%c\ %trror:\ %m,
		       \%trror:\ %m,
		       \%f:%l.%c-%e.%k\ %tarning:\ %m,
		       \%f:%l.%c\ %tarning:\ %m,
		       \%tarning:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save