Skip to content

Commit

Permalink
prepare for merge back
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Jan 22, 2024
1 parent 5e195a0 commit 854ed89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
24 changes: 0 additions & 24 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 854ed89

Please sign in to comment.