Changed strategy for setting preprocessor definitions.

Instead of generating separate object files for each permutation of
defines for a source file, GenerateNamedObjects now writes an entirely
new source file and inserts the defines as #define c statements.

This solves a problem I ran into with ar.exe where it was refusing to
link objects that had the same filename despite having different paths.
This commit is contained in:
Hank Anderson
2015-02-24 12:26:33 -06:00
parent 12d1fb2e40
commit 0d8e227ea7
8 changed files with 30 additions and 39 deletions

View File

@@ -251,4 +251,4 @@ endforeach ()
# Makefile.LA
#DBLASOBJS += dneg_tcopy$(TSUFFIX).$(SUFFIX) dlaswp_ncopy$(TSUFFIX).$(SUFFIX)
set(DBLAS_OBJS ${DBLAS_OBJS} PARENT_SCOPE) # list append removes the scope from DBLAS_OBJS
add_library(kernel OBJECT ${OPENBLAS_SRC})