Clang compile fixes (#1876)
* Fix compile error from -Wwritable-strings Signed-off-by: Chris Burel <burelc@amazon.com> * Fix flags used to build MaskedOcclusionCulling with clang Signed-off-by: Chris Burel <burelc@amazon.com> * Fix class that has a final destructor, but the class itself was not final Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
+1
-1
@@ -1155,7 +1155,7 @@ namespace Benchmark
|
||||
class StorageDriveWindowsFixture : public benchmark::Fixture
|
||||
{
|
||||
public:
|
||||
constexpr static char* TestFileName = "StreamerBenchmark.bin";
|
||||
constexpr static const char* TestFileName = "StreamerBenchmark.bin";
|
||||
constexpr static size_t FileSize = 64_mib;
|
||||
|
||||
void SetupStreamer(bool enableFileSharing)
|
||||
|
||||
@@ -25,6 +25,8 @@ ly_add_target(
|
||||
../Assets/atom_rpi_asset_files.cmake
|
||||
${pal_source_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
|
||||
${MASKED_OCCLUSION_CULLING_FILES}
|
||||
PLATFORM_INCLUDE_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/Source/Platform/Common/${PAL_TRAIT_COMPILER_ID}/atom_rpi_public_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake
|
||||
INCLUDE_DIRECTORIES
|
||||
PRIVATE
|
||||
Source
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
#
|
||||
#
|
||||
|
||||
ly_add_source_properties(
|
||||
SOURCES External/MaskedOcclusionCulling/MaskedOcclusionCullingAVX2.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES -mavx2 -mfma -msse4.1
|
||||
)
|
||||
|
||||
ly_add_source_properties(
|
||||
SOURCES External/MaskedOcclusionCulling/MaskedOcclusionCulling.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES -mno-avx
|
||||
)
|
||||
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
#
|
||||
#
|
||||
|
||||
ly_add_source_properties(
|
||||
SOURCES External/MaskedOcclusionCulling/MaskedOcclusionCullingAVX2.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES /arch:AVX2 /W3
|
||||
)
|
||||
ly_add_source_properties(
|
||||
SOURCES
|
||||
External/MaskedOcclusionCulling/MaskedOcclusionCullingAVX512.cpp
|
||||
External/MaskedOcclusionCulling/MaskedOcclusionCulling.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES /W3
|
||||
)
|
||||
@@ -7,16 +7,3 @@
|
||||
|
||||
set (PAL_TRAIT_BUILD_ATOM_RPI_ASSETS_SUPPORTED TRUE)
|
||||
set (PAL_TRAIT_BUILD_ATOM_RPI_MASKED_OCCLUSION_CULLING_SUPPORTED TRUE)
|
||||
|
||||
ly_add_source_properties(
|
||||
SOURCES External/MaskedOcclusionCulling/MaskedOcclusionCullingAVX2.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES /arch:AVX2 /W3
|
||||
)
|
||||
ly_add_source_properties(
|
||||
SOURCES
|
||||
External/MaskedOcclusionCulling/MaskedOcclusionCullingAVX512.cpp
|
||||
External/MaskedOcclusionCulling/MaskedOcclusionCulling.cpp
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
VALUES /W3
|
||||
)
|
||||
@@ -37,7 +37,7 @@ namespace EMotionFX::Pipeline::Rule
|
||||
AZStd::unique_ptr<EMotionFX::MotionEventTable> m_motionEventTable;
|
||||
};
|
||||
|
||||
class MotionMetaDataRule
|
||||
class MotionMetaDataRule final
|
||||
: public ExternalToolRule<AZStd::shared_ptr<MotionMetaData>>
|
||||
{
|
||||
public:
|
||||
@@ -46,7 +46,7 @@ namespace EMotionFX::Pipeline::Rule
|
||||
|
||||
MotionMetaDataRule();
|
||||
MotionMetaDataRule(const AZStd::shared_ptr<MotionMetaData>& data);
|
||||
~MotionMetaDataRule() final = default;
|
||||
~MotionMetaDataRule() = default;
|
||||
|
||||
const AZStd::shared_ptr<MotionMetaData>& GetData() const override { return m_data; }
|
||||
void SetData(const AZStd::shared_ptr<MotionMetaData>& data) override { m_data = data; }
|
||||
|
||||
Reference in New Issue
Block a user