prepare for merge back

This commit is contained in:
AlexandreRouma 2024-01-22 20:30:53 +01:00
parent 5e195a0d43
commit 854ed89b82
3 changed files with 2 additions and 26 deletions

View File

@ -122,7 +122,7 @@ jobs:
- name: Prepare CMake
working-directory: ${{runner.workspace}}/build
run: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 $GITHUB_WORKSPACE -DOPT_BUILD_PLUTOSDR_SOURCE=ON -DOPT_BUILD_SOAPY_SOURCE=OFF -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_AUDIO_SINK=OFF -DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_PERSEUS_SOURCE=ON -DOPT_BUILD_AUDIO_SOURCE=OFF -DUSE_BUNDLE_DEFAULTS=ON -DCMAKE_BUILD_TYPE=Release
run: cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 $GITHUB_WORKSPACE -DOPT_BUILD_PLUTOSDR_SOURCE=ON -DOPT_BUILD_SOAPY_SOURCE=OFF -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_AUDIO_SINK=OFF -DOPT_BUILD_PORTAUDIO_SINK=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_PERSEUS_SOURCE=ON -DOPT_BUILD_AUDIO_SOURCE=OFF -DUSE_BUNDLE_DEFAULTS=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ${{runner.workspace}}/build

View File

@ -71,7 +71,7 @@ if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
if (MSVC)
set(SDRPP_COMPILER_FLAGS /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(SDRPP_COMPILER_FLAGS -g -Og -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup -fsanitize=address)
set(SDRPP_COMPILER_FLAGS -g -Og -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
set(SDRPP_COMPILER_FLAGS -g -Og -std=c++17)
endif ()

View File

@ -1,30 +1,6 @@
#include <core.h>
#include <stdio.h>
#include <unistd.h>
extern char **environ;
int main(int argc, char* argv[], char* envp[]) {
FILE* dump = fopen("/Users/ryzerth/dump.txt", "wb");
char buf[1024];
fprintf(dump, "Working directory: %s\n\n", getcwd(buf, 1023));
fprintf(dump, "Arguments:\n");
fprintf(dump, "----------\n");
for (int i = 0; i < argc; i++) {
fprintf(dump, "%d: '%s'\n", i, argv[i]);
}
fprintf(dump, "\n");
fprintf(dump, "Environment Variables:\n");
fprintf(dump, "----------\n");
for (char** env = environ; *env; env++) {
fprintf(dump, "%s\n", *env);
}
fprintf(dump, "\n");
fclose(dump);
return sdrpp_main(argc, argv);
}