Skip to content

Commit

Permalink
Use the native target if available in SF
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Sep 22, 2023
1 parent 29d30c9 commit 9eed3c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/fishtest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
on how frequently the main instance flushes its run cache.
"""

WORKER_VERSION = 216
WORKER_VERSION = 217


def validate_request(request):
Expand Down
7 changes: 7 additions & 0 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ def make_targets():
def find_arch(compiler):
"""Find the best arch string based on the cpu/g++ capabilities and Makefile targets"""
targets = make_targets()

# recent SF support a native target
if "native" in targets:
print("Using native target architecture")
return "native"

# older SF will need to fall back to this implementation
props = gcc_props() if compiler == "g++" else clang_props()

if is_64bit():
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 216, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "+j8t596hJHgRde7jqxJibKLXPvgi1ygjM7cp/hKzEWF97aRCehCBiSEMsgkZkTUo", "games.py": "A1+dhkNt3mfL7rde3srtxVl0gDGDq3EaJNbmrKsQXON20bdCaC1sZSnB1VwLCQlw"}
{"__version": 217, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "cFunWo4iviMvzdV9b/8PTfOLoXbovy4hWwmGR6OI70agi5dkwoCJ07BoYwBU+xjd", "games.py": "+vQWJca7pOjAn9EBAV5KUb6JK2pwdtO4iu7Dl1Icnia/a7U3lWuyPHQ6XTC+3aRg"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# Several packages are called "expression".
# So we make sure to use the locally installed one.

WORKER_VERSION = 216
WORKER_VERSION = 217
FILE_LIST = ["updater.py", "worker.py", "games.py"]
HTTP_TIMEOUT = 30.0
INITIAL_RETRY_TIME = 15.0
Expand Down

0 comments on commit 9eed3c5

Please sign in to comment.