-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1200 from arrayfire/hotfixes-3.2.2
Hotfixes 3.2.2
- Loading branch information
Showing
122 changed files
with
1,122 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ GRTAGS | |
GPATH | ||
.dir-locals.el | ||
include/af/version.h | ||
src/backend/version.hpp | ||
docs/details/examples.dox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
IF(NOT DEFINED MINBUILDTIME_FLAG) | ||
SET(MINBUILDTIME_FLAG OFF CACHE INTERNAL "Flag" FORCE) | ||
ENDIF() | ||
|
||
IF(${MIN_BUILD_TIME}) | ||
IF(NOT ${CMAKE_BUILD_TYPE} MATCHES "Release") | ||
MESSAGE(WARNING "The MIN_BUILD_TIME Flag only works with Release.\ | ||
Other CMAKE_BUILD_TYPEs will be ignore this flag") | ||
ELSEIF(NOT ${MINBUILDTIME_FLAG}) | ||
# BUILD_TYPE is Release - Set the flags | ||
# The flags should be set only when going from OFF -> ON. This is | ||
# determined by MINBUILDTIME_FLAG | ||
# IF FLAG is ON, then the flags were already set, no need to set them again | ||
# IF FLAG is OFF, then the flags are not set, so set them now, and back up | ||
# release flags | ||
MESSAGE(STATUS "Setting Release flags to no optimizations") | ||
|
||
# Backup Default Release Flags | ||
SET(CMAKE_CXX_FLAGS_RELEASE_DEFAULT ${CMAKE_CXX_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default compiler flags during release build" FORCE) | ||
SET(CMAKE_C_FLAGS_RELEASE_DEFAULT ${CMAKE_C_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default compiler flags during release build" FORCE) | ||
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE_DEFAULT ${CMAKE_EXE_LINKER_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default linker flags during release build" FORCE) | ||
SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE_DEFAULT ${CMAKE_MODULE_LINKER_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default linker flags during release build" FORCE) | ||
SET(CMAKE_STATIC_LINKER_FLAGS_RELEASE_DEFAULT ${CMAKE_STATIC_LINKER_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default linker flags during release build" FORCE) | ||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE_DEFAULT ${CMAKE_SHARED_LINKER_FLAGS_RELEASE} CACHE | ||
INTERNAL "Default linker flags during release build" FORCE) | ||
|
||
IF(MSVC) | ||
MESSAGE(STATUS "MSVC Flags") | ||
SET(CMAKE_CXX_FLAGS_RELEASE "/MD /Od /Ob1 /D NDEBUG" CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_C_FLAGS_RELEASE "/MD /Od /Ob1 /D NDEBUG" CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "/INCREMENTAL:NO" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE "/INCREMENTAL:NO" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_STATIC_LINKER_FLAGS_RELEASE "" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "/INCREMENTAL:NO" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
ELSE(MSVC) | ||
MESSAGE(STATUS "Other Flags") | ||
SET(CMAKE_CXX_FLAGS_RELEASE "-O0 -DNDEBUG" CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_C_FLAGS_RELEASE "-O0 -DNDEBUG" CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE "" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_STATIC_LINKER_FLAGS_RELEASE "" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "" CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
ENDIF(MSVC) | ||
|
||
SET(MINBUILDTIME_FLAG ON CACHE INTERNAL "Flag" FORCE) | ||
ENDIF() | ||
ELSE() | ||
MESSAGE(STATUS "MIN_BUILD_TIME IS OFF") | ||
|
||
# MIN_BUILD_TIME is OFF. Change the flags back only if the flag was set before | ||
IF(${MINBUILDTIME_FLAG}) | ||
MESSAGE(STATUS "MIN_BUILD_FLAG was toggled. Resetting Release FLags") | ||
SET(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the compiler during release builds." FORCE) | ||
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_STATIC_LINKER_FLAGS_RELEASE ${CMAKE_STATIC_LINKER_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_DEFAULT} CACHE | ||
STRING "Flags used by the linker during release builds." FORCE) | ||
SET(MINBUILDTIME_FLAG OFF CACHE INTERNAL "Flag" FORCE) | ||
ENDIF() | ||
ENDIF() | ||
|
||
MARK_AS_ADVANCED( | ||
CMAKE_CXX_FLAGS_RELEASE | ||
CMAKE_C_FLAGS_RELEASE | ||
CMAKE_EXE_LINKER_FLAGS_RELEASE | ||
CMAKE_MODULE_LINKER_FLAGS_RELEASE | ||
CMAKE_STATIC_LINKER_FLAGS_RELEASE | ||
CMAKE_SHARED_LINKER_FLAGS_RELEASE | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/******************************************************* | ||
* Copyright (c) 2014, ArrayFire | ||
* All rights reserved. | ||
* | ||
* This file is distributed under 3-clause BSD license. | ||
* The complete license agreement can be obtained at: | ||
* http://arrayfire.com/licenses/BSD-3-Clause | ||
********************************************************/ | ||
|
||
#pragma once | ||
|
||
#define AF_REVISION "@GIT_COMMIT_HASH@" | ||
#define AF_COMPILER_STR "@AF_COMPILER_STRING@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,4 +190,9 @@ div.fragment | |
border : 1px solid #DFDFDF; | ||
} | ||
|
||
pre | ||
{ | ||
overflow : hidden; | ||
} | ||
|
||
/* @end */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.