diff options
author | Merry <[email protected]> | 2023-01-06 14:27:06 +0000 |
---|---|---|
committer | Merry <[email protected]> | 2023-01-06 14:27:06 +0000 |
commit | 6b41b5be07d51d8b1e2103782bb28d4873a3ebfa (patch) | |
tree | 929e8fe32f0e68657fc1fea9e392afccfe2e66a4 /CMakeModules/impl | |
parent | c72ee5473b5b11ac110e86cc9544cab5159ccce8 (diff) | |
download | dynarmic-6b41b5be07d51d8b1e2103782bb28d4873a3ebfa.tar.gz dynarmic-6b41b5be07d51d8b1e2103782bb28d4873a3ebfa.zip |
CMakeLists: Support multi-architecture builds
Diffstat (limited to 'CMakeModules/impl')
-rw-r--r-- | CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake b/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake new file mode 100644 index 00000000..82b3078a --- /dev/null +++ b/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake @@ -0,0 +1,3 @@ +string(TOUPPER "${arch}" arch) +file(READ "${input_file}" f_contents) +file(WRITE "${output_file}" "#include <mcl/macro/architecture.hpp>\n#if defined(MCL_ARCHITECTURE_${arch})\n${f_contents}\n#endif\n") |