Skip to content

Commit

Permalink
fix VCPKG_ROOT quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Feb 15, 2024
1 parent e260858 commit 8de6e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Compile/CodeGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
-----------------------------------------------------------------------------
module Compile.CodeGen ( codeGen, Link, LinkResult(..), noLink ) where

import Debug.Trace
import Data.Char
import Data.Maybe
import Data.List
Expand Down
4 changes: 2 additions & 2 deletions src/Compile/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Compile.Options( -- * Command line options
, Terminal(..)
) where


import Debug.Trace
import Data.Char ( toLower, toUpper, isAlpha, isSpace )
import Data.List ( intersperse, isInfixOf )
import Data.Hashable
Expand Down Expand Up @@ -687,7 +687,6 @@ environment
, ("koka_lib_dir", "dir", opt "libdir", "Set the koka compiled library directory (= '<prefix>/lib/koka/<ver>')")
, ("koka_share_dir", "dir", opt "sharedir", "Set the koka library sources directory (= '<prefix>/share/koka/<ver>')")
, ("koka_build_dir", "dir", opt "builddir", ("Set the default koka build directory (= '" ++ kkbuild ++ "')"))
, ("VCPKG_ROOT" , "dir", opt "vcpkg", "Root directory of the vcpkg installation (= '~/vcpkg')")
]
where
flagsEnv s = [s]
Expand Down Expand Up @@ -947,6 +946,7 @@ vcpkgFindRoot :: FilePath -> IO (FilePath,FilePath)
vcpkgFindRoot root
= if (null root)
then do eroot <- getEnvVar "VCPKG_ROOT"
-- trace ("found eroot,root: " ++ show (eroot,root)) $
if (not (null eroot))
then return (eroot, joinPath eroot vcpkgExe)
else do homeDir <- getHomeDirectory
Expand Down

0 comments on commit 8de6e23

Please sign in to comment.