Skip to content

Commit 5867e17

Browse files
authored
Fixes profiler build and adds workflow (#147)
* Fixes profiler build and adds workflow * Fix profiler build name
1 parent 5f94006 commit 5867e17

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ jobs:
2929
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
3030
matrix:
3131
platform:
32-
- { name: Windows (MSVC), os: windows-latest, shell: sh, c_compiler: cl, cpp_compiler: cl, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
33-
- { name: Ubuntu (GCC), os: ubuntu-latest, shell: sh, c_compiler: gcc, cpp_compiler: g++, cmake_args: '-GNinja' }
34-
- { name: Ubuntu (Clang), os: ubuntu-latest, shell: sh, c_compiler: clang, cpp_compiler: clang++, cmake_args: '-GNinja' }
35-
- { name: Ubuntu (mingw), os: ubuntu-latest, shell: sh, c_compiler: mingw-w64-gcc, cpp_compiler: mingw-w64-g++,
32+
- { name: Windows (MSVC), os: windows-latest, shell: sh, c_compiler: cl, cpp_compiler: cl, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
33+
- { name: Ubuntu (GCC), os: ubuntu-latest, shell: sh, c_compiler: gcc, cpp_compiler: g++, cmake_args: '-GNinja' }
34+
- { name: 'Ubuntu (GCC, PROFILER)', os: ubuntu-latest, shell: sh, c_compiler: gcc, cpp_compiler: g++, cmake_args: '-DPROFILER=ON -GNinja' }
35+
- { name: Ubuntu (Clang), os: ubuntu-latest, shell: sh, c_compiler: clang, cpp_compiler: clang++, cmake_args: '-GNinja' }
36+
- { name: Ubuntu (mingw), os: ubuntu-latest, shell: sh, c_compiler: mingw-w64-gcc, cpp_compiler: mingw-w64-g++,
3637
cmake_args: '-DSDLMIXER_VENDORED=ON -DSDLTTF_VENDORED=ON -DCMAKE_TOOLCHAIN_FILE=build_deps/toolchains/mingw-w64-x86_64.cmake -GNinja' }
37-
- { name: Mac (GCC), os: macos-latest, shell: sh, c_compiler: gcc, cpp_compiler: g++, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
38-
- { name: Mac (Clang), os: macos-latest, shell: sh, c_compiler: clang, cpp_compiler: clang++, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
38+
- { name: Mac (GCC), os: macos-latest, shell: sh, c_compiler: gcc, cpp_compiler: g++, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
39+
- { name: Mac (Clang), os: macos-latest, shell: sh, c_compiler: clang, cpp_compiler: clang++, cmake_args: '-DSDLMIXER_VENDORED=ON -GNinja' }
3940

4041
steps:
4142
- uses: actions/checkout@v4

lib/profiler/src/profiler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define PROFILER 1
1+
#define PROFILER
22

33
#include "common.h"
44
#include "profiler_c.h"

lib/profiler/src/rdtsc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <sys/time.h>
22
#include <stdint.h>
3+
#define PROFILER
34
#include "rdtsc.h"
45

56
#ifdef __arm__

0 commit comments

Comments
 (0)