[LLVMdev] Regular Expressions

David Greene dag at cray.com
Tue Jun 9 12:00:24 PDT 2009


On Tuesday 09 June 2009 04:35, Török Edwin wrote:
> On 2009-06-09 12:27, Howard Su wrote:
> > This change break the MSVC build since no regex by default in Windows
> > MSVC platform.
>
> Perhaps we should add a regex implementation to lib/System?

That's potentially a lot of work.  I started looking at it and it would
involve hiding the OpenBSD library under some other lib/System facade.
Designing that facade takes time and we probably won't get it right
the first or second time.

Another option is to just provide the OpenBSD regex code as an optional
library that gets compiled and linked for MSVC systems.  I'm not at all
familiar with MSVC build procedures so I don't know how involved that is.

The advantage to the second approach is that we keep the POSIX interfaces
in the rest of the LLVM code, we don't have to design another set of
interfaces and we just use the OpenBSD library when we have to.

Thoughts?

                               -Dave




More information about the llvm-dev mailing list