mirror of
https://github.com/amd/blis.git
synced 2026-04-20 07:38:53 +00:00
Build System: Remove absolute path of files appearing in the library
Updated Makefile and main CMakelists.txt to replace absolute path within library object files with whatever path specified. In files where __FILE__ macro is used, the absolute path was appearing in the library. Now this will be replaced with relative paths. AMD-Internal: [CPUPL-5910] Change-Id: Iac63645348a7f8214123fdcd3675670eedd887e3
This commit is contained in:
committed by
Eleni Vlachopoulou
parent
13e7ada3f2
commit
2ece628a4d
@@ -1007,6 +1007,9 @@ if(NOT WIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Macro to remove/replace absolute path within library
|
||||
list(APPEND BUILD_SYMFLAGS "-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=")
|
||||
|
||||
# --- C Preprocessor flags ---
|
||||
# Enable clock_gettime() in time.h.
|
||||
set(CPPROCFLAGS -D_POSIX_C_SOURCE=200112L)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# libraries.
|
||||
#
|
||||
# Copyright (C) 2014, The University of Texas at Austin
|
||||
# Copyright (C) 2020 - 2024, Advanced Micro Devices, Inc. All rights reserved.
|
||||
# Copyright (C) 2020 - 2025, Advanced Micro Devices, Inc. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
@@ -814,6 +814,9 @@ endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Macro to remove/replace absolute path within library
|
||||
BUILD_SYMFLAGS += -fmacro-prefix-map=${DIST_PATH}=.
|
||||
|
||||
# --- Language flags ---
|
||||
|
||||
# Enable C99.
|
||||
@@ -1213,4 +1216,3 @@ BUILD_CPPFLAGS := -DBLIS_IS_BUILDING_LIBRARY
|
||||
|
||||
# end of ifndef COMMON_MK_INCLUDED conditional block
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user