diff options
author | James Foster <ratherforky@gmail.com> | 2019-07-30 18:01:29 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-08-06 20:25:18 -0400 |
commit | 0c1ccf3cad5da8ae974c2813767cfcc489391e21 (patch) | |
tree | 4d7a06534123379a0d4d2903632bba30cb629c49 /hadrian/src/Rules.hs | |
parent | ea16f6cb22148982f9a0956be82288d380c1d9d9 (diff) | |
download | haskell-0c1ccf3cad5da8ae974c2813767cfcc489391e21.tar.gz |
hadrian: Refactor file patterns for future Shake changes (fixes #17005)
Shake will be moving from its current implementation of ?== to one from
System.FilePattern. Support for `//` is being dropped, leaving only `*`
and `**` as special forms. This commit converts the existing file
patterns in Hadrian to the new format. It also removes all occurances
of <//> and changes the user-settings docs to remove references to //
and add **.
The conversion is as follows:
- //a ==> **/a
- a// ==> a/**
- a//b ==> a/**/b
Diffstat (limited to 'hadrian/src/Rules.hs')
-rw-r--r-- | hadrian/src/Rules.hs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hadrian/src/Rules.hs b/hadrian/src/Rules.hs index 61c5211399..5bb9d4cdc4 100644 --- a/hadrian/src/Rules.hs +++ b/hadrian/src/Rules.hs @@ -50,12 +50,12 @@ toolArgsTarget = do root <- buildRoot let dir = buildDir (vanillaContext Stage0 compiler) - need [ root <//> dir -/- "Config.hs" ] - need [ root <//> dir -/- "Fingerprint.hs" ] - need [ root <//> dir -/- "Parser.hs" ] - need [ root <//> dir -/- "Lexer.hs" ] - need [ root <//> dir -/- "CmmParse.hs" ] - need [ root <//> dir -/- "CmmLex.hs" ] + need [ root -/- dir -/- "Config.hs" ] + need [ root -/- dir -/- "Fingerprint.hs" ] + need [ root -/- dir -/- "Parser.hs" ] + need [ root -/- dir -/- "Lexer.hs" ] + need [ root -/- dir -/- "CmmParse.hs" ] + need [ root -/- dir -/- "CmmLex.hs" ] -- Find out the arguments that are needed to load a module into the -- session |