packages feed

nvvm 0.8.0.1 → 0.8.0.2

raw patch · 3 files changed

+15/−10 lines, 3 filessetup-changed

Files

CHANGELOG.md view
@@ -4,6 +4,9 @@  The format is based on [Keep a Changelog](http://keepachangelog.com/). +## [0.8.0.2] - 2018-01-05+  * Fix profiling build+ ## [0.8.0.1] - 2017-11-15   * [#2]: Fix nvvm library path on windows @@ -20,6 +23,7 @@   * First version. Released on an unsuspecting world.  +[0.8.0.2]:      https://github.com/tmcdonell/nvvm/compare/v0.8.0.1...v0.8.0.2 [0.8.0.1]:      https://github.com/tmcdonell/nvvm/compare/v0.8.0.0...v0.8.0.1 [0.8.0.0]:      https://github.com/tmcdonell/nvvm/compare/v0.7.5.2...v0.8.0.0 [0.7.5.2]:      https://github.com/tmcdonell/nvvm/compare/0.7.5.1...v0.7.5.2
Setup.hs view
@@ -115,12 +115,13 @@     postConfHook :: Args -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ()     postConfHook args flags pkg_descr lbi = do       let-          verbosity       = fromFlag (configVerbosity flags)+          verbosity       = fromFlagOrDefault normal (configVerbosity flags)+          profile         = fromFlagOrDefault False  (configProfLib flags)           currentPlatform = hostPlatform lbi           compilerId_     = compilerId (compiler lbi)       --       noExtraFlags args-      generateAndStoreBuildInfo verbosity currentPlatform compilerId_ generatedBuldInfoFilePath+      generateAndStoreBuildInfo verbosity profile currentPlatform compilerId_ generatedBuldInfoFilePath       validateLinker verbosity currentPlatform $ withPrograms lbi       --       actualBuildInfoToUse <- getHookedBuildInfo verbosity@@ -209,9 +210,9 @@  -- Runs CUDA detection procedure and stores .buildinfo to a file. ---generateAndStoreBuildInfo :: Verbosity -> Platform -> CompilerId -> FilePath -> IO ()-generateAndStoreBuildInfo verbosity platform (CompilerId _ghcFlavor ghcVersion) path =-  storeHookedBuildInfo verbosity path =<< libraryBuildInfo platform ghcVersion+generateAndStoreBuildInfo :: Verbosity -> Bool -> Platform -> CompilerId -> FilePath -> IO ()+generateAndStoreBuildInfo verbosity profile platform (CompilerId _ghcFlavor ghcVersion) path =+  storeHookedBuildInfo verbosity path =<< libraryBuildInfo profile platform ghcVersion  findProgram :: Verbosity -> FilePath -> IO (Maybe FilePath) findProgram verbosity prog =@@ -230,8 +231,8 @@ -- Generates build info with flags needed for CUDA Toolkit to be properly -- visible to underlying build tools. ---libraryBuildInfo :: Platform -> Version -> IO HookedBuildInfo-libraryBuildInfo platform@(Platform arch os) ghcVersion = do+libraryBuildInfo :: Bool -> Platform -> Version -> IO HookedBuildInfo+libraryBuildInfo profile platform@(Platform arch os) ghcVersion = do   let       -- XXX       libraryPaths      = [nvvmLibraryPath platform]@@ -243,7 +244,7 @@       ldOptions'        = map ("-L"++) extraLibDirs'       ghcOptions        = map ("-optc"++) ccOptions'                        ++ map ("-optl"++) ldOptions'-                       ++ if os /= Windows+                       ++ if os /= Windows && not profile                             then map ("-optl-Wl,-rpath,"++) extraLibDirs'                             else []       extraLibs'        = nvvmLibrary platform
nvvm.cabal view
@@ -1,5 +1,5 @@ name:                   nvvm-version:                0.8.0.1+version:                0.8.0.2 synopsis:               FFI bindings to NVVM description:   The NVVM library compiles NVVM IR (a subset of LLVM IR) into PTX code which@@ -83,7 +83,7 @@ source-repository this   type:                 git   location:             https://github.com/tmcdonell/nvvm-  tag:                  v0.8.0.1+  tag:                  v0.8.0.2  -- vim: nospell