Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it compatible with Python3, remove -Werror #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Build/Linux/Common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PLATFORM_CFLAG =
PLATFORM_LFLAG =
TARGET_SUFFIX =
ADDL_CFLAGS =
CFLAGS = $(OPTIMIZE) -std=c++11 -fPIC -Wall -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-non-virtual-dtor -Wno-conversion-null -Wno-ignored-attributes -Werror -msse $(PLATFORM_CFLAG) $(ADDL_CFLAGS)
CFLAGS = $(OPTIMIZE) -std=c++11 -fPIC -Wall -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-non-virtual-dtor -Wno-conversion-null -Wno-ignored-attributes -msse $(PLATFORM_CFLAG) $(ADDL_CFLAGS)
HSAFDN_CFLAGS =
PLATFORM_DIR = x64
HSA_PLATFORM_DIR = x86_64
Expand Down
2 changes: 1 addition & 1 deletion Build/Linux/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ initCommonLibAmd (CXL_env, CXL_lib_common_amd_deps)
##############################################################
# Print out all environment variables of CXL_env if verbose is specified
if CXL_env['CXL_build_verbose'] != 0 :
print CXL_env.Dump()
print(CXL_env.Dump())


##############################################################
Expand Down
6 changes: 6 additions & 0 deletions Build/Linux/build_rcp.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ RCP_ARCHIVE="$BUILD_PATH/$RCP_ARCHIVE_BASE"

RCPPROFILEDATAPARSERARCHIVE="$PROFILEDATAPARSER-$VERSION_STR.tgz"

# Since the https://github.com/GPUOpen-Archive/common-src-SCons repository
# is archived, we need to modify CXL_init.py here
2to3 --no-diffs -n -w $BUILD_PATH/CXL_init.py

sed -i s,-Werror,, $BUILD_PATH/CXL_init.py

if ! ($bZipOnly) ; then
# delete log file
if ! ($bAppendToLog) ; then
Expand Down