Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add -static to mingw option #1032

Merged
merged 5 commits into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <cstdio>
#include <vector>
#include <tuple>
#include <algorithm>

using namespace std;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <iostream>
#include <tuple>
#include "random.h"

#include "common.hpp"
Expand Down
2 changes: 2 additions & 0 deletions problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def compile(src: Path, rootdir: Path, opts: [str] = []):
cxxflags_default += ' -Wl,-stack,{}'.format(hex(STACK_SIZE))
# avoid using MinGW's "unique" stdio, which doesn't recognize %lld
cxxflags_default += ' -D__USE_MINGW_ANSI_STDIO'
# avoid CI issue, ref https://github.com/yosupo06/library-checker-problems/issues/1031
cxxflags_default += ' -static'
if platform.uname().system == 'Linux' and 'microsoft' in platform.uname().release.lower():
# a workaround for the lack of ulimit in Windows Subsystem for Linux
cxxflags_default += ' -fsplit-stack'
Expand Down