Fix PR#5305 : prevent ocamlbuild from complaining about links to _build/

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12452 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Fabrice Le Fessant 2012-05-15 08:37:48 +00:00
parent 621dd2dd5f
commit fef288bd38
2 changed files with 3 additions and 1 deletions

View File

@ -98,6 +98,7 @@ Bug Fixes:
- PR#5238, PR#5277: Sys_error when getting error location
- PR#5295: OS threads: problem with caml_c_thread_unregister()
- PR#5301: camlp4r and exception equal to another one with parameters
- PR#5305: prevent ocamlbuild from complaining about links to _build/
- PR#5309: Queue.add is not thread/signal safe
- PR#5310: Ratio.create_ratio/create_normalized_ratio have misleading names
- PR#5311: better message for warning 23

View File

@ -72,7 +72,8 @@ let check ?sanitize laws entry =
list_collect
begin function
| File(path, name, _, true) ->
if Filename.check_suffix name suffix then
if Filename.check_suffix name suffix
&& not ( Pathname.link_to_dir (filename_concat path name) !Options.build_dir ) then
begin
remove path name;
Some(sf "File %s in %s has suffix %s" name path suffix)